diff options
Diffstat (limited to 'home/neovim')
| -rw-r--r-- | home/neovim/config.nix | 5 | ||||
| -rw-r--r-- | home/neovim/default.nix | 2 | ||||
| -rw-r--r-- | home/neovim/init.lua | 17 |
3 files changed, 9 insertions, 15 deletions
diff --git a/home/neovim/config.nix b/home/neovim/config.nix index aa5816e..52bae04 100644 --- a/home/neovim/config.nix +++ b/home/neovim/config.nix @@ -53,7 +53,10 @@ in }; # list of lsp servers to load lsps = - optionalAttrs config.development.c.enable { + { + nixd = {}; + } + // optionalAttrs config.development.c.enable { clangd = {}; } // optionalAttrs config.development.java.enable { diff --git a/home/neovim/default.nix b/home/neovim/default.nix index e120113..1eb18d8 100644 --- a/home/neovim/default.nix +++ b/home/neovim/default.nix @@ -14,7 +14,7 @@ in { viAlias = true; vimAlias = true; - extraLuaConfig = '' + initLua = '' local config = ${lua_cfg} ${lua} diff --git a/home/neovim/init.lua b/home/neovim/init.lua index a97feb4..e66e523 100644 --- a/home/neovim/init.lua +++ b/home/neovim/init.lua @@ -291,19 +291,10 @@ require('nvim-surround').setup {} --[[ SYNTAX HIGHLIGHTING ]]-- -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, - }, -} +vim.api.nvim_create_autocmd('FileType', { + pattern = { '<filetype>' }, + callback = function() vim.treesitter.start() end, +}) require('illuminate').configure { providers = { |