nvim: configure clangd

This commit is contained in:
Motiejus Jakštys 2024-06-11 09:40:29 +03:00
parent 2ab40208fc
commit 6ef1d85a66
2 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,7 @@ in {
(lib.mkIf devTools [ (lib.mkIf devTools [
pkgs.vimPlugins.vim-go pkgs.vimPlugins.vim-go
pkgs.vimPlugins.zig-vim pkgs.vimPlugins.zig-vim
pkgs.vimPlugins.nvim-lspconfig
]) ])
]; ];
extraConfig = builtins.readFile ./vimrc; extraConfig = builtins.readFile ./vimrc;

View File

@ -1,3 +1,5 @@
require'lspconfig'.clangd.setup{}
vim.api.nvim_exec([[ vim.api.nvim_exec([[
set grepprg=@ripgrep@/bin/rg\ --vimgrep grepformat^=%f:%l:%c:%m set grepprg=@ripgrep@/bin/rg\ --vimgrep grepformat^=%f:%l:%c:%m
]], false) ]], false)