summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-25 09:34:18 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-25 09:34:18 -0400
commitf0f5af1e25018d3f6f736af77bffe983b5503f1f (patch)
tree3877aae08f4a5c6fefa5fc0b354a47a2eafe5e45
parentadd borders and perty colors to cmp (diff)
downloaddotfiles-nix-f0f5af1e25018d3f6f736af77bffe983b5503f1f.tar.gz
dotfiles-nix-f0f5af1e25018d3f6f736af77bffe983b5503f1f.tar.bz2
dotfiles-nix-f0f5af1e25018d3f6f736af77bffe983b5503f1f.zip
switch neovim lua file to all tabs
-rw-r--r--home/neovim/init.lua22
1 files changed, 11 insertions, 11 deletions
diff --git a/home/neovim/init.lua b/home/neovim/init.lua
index ca18752..7ff402a 100644
--- a/home/neovim/init.lua
+++ b/home/neovim/init.lua
@@ -248,8 +248,8 @@ end
local cmp = require('cmp')
local cmp_select = {behavior = cmp.SelectBehavior.select}
local cmp_mappings = cmp.mapping.preset.insert({
- [config.keys.cmp.prev] = cmp.mapping.select_prev_item(cmp_select),
- [config.keys.cmp.next] = cmp.mapping.select_next_item(cmp_select),
+ [config.keys.cmp.prev] = cmp.mapping.select_prev_item(cmp_select),
+ [config.keys.cmp.next] = cmp.mapping.select_next_item(cmp_select),
[config.keys.cmp.confirm] = cmp.mapping.confirm({ select = false }),
[config.keys.cmp.complete] = cmp.mapping.complete(),
})
@@ -296,15 +296,15 @@ require('nvim-surround').setup {}
require('nvim-treesitter.configs').setup {
highlight = {
- enable = true,
- disable = function(lang, buf)
- local max_filesize = config.highlight.max_size * 1024
- local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
- if ok and stats and stats.size > max_filesize then
- return true
- end
- end,
- additional_vim_regex_highlighting = true,
+ enable = true,
+ disable = function(lang, buf)
+ local max_filesize = config.highlight.max_size * 1024
+ local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
+ if ok and stats and stats.size > max_filesize then
+ return true
+ end
+ end,
+ additional_vim_regex_highlighting = true,
},
}