mirror of
https://github.com/davegallant/nix-config
synced 2025-08-06 07:13:40 +00:00
Add nvim-lspconfig and several language servers
This commit is contained in:
@@ -39,6 +39,11 @@ in
|
||||
starship
|
||||
tokei
|
||||
|
||||
# language servers
|
||||
nodePackages.bash-language-server
|
||||
nodePackages.yaml-language-server
|
||||
nodePackages.pyright
|
||||
|
||||
# productivity
|
||||
bat
|
||||
colordiff
|
||||
|
6
flake.lock
generated
6
flake.lock
generated
@@ -27,11 +27,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1625694413,
|
||||
"narHash": "sha256-goRLk1I/OMclS9i17g932wyHyjiKI+htbuFIWIkzTbw=",
|
||||
"lastModified": 1625909913,
|
||||
"narHash": "sha256-ZP3RCGYwPDu4I5rwLYER2/d4aHFxiMTQ5Ioc89WRTow=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "06ee8ec8dfc4554c374052cd7b7083765748af99",
|
||||
"rev": "9ed7a73ae23f0d905bd098c6ce71c50289d37928",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@@ -287,12 +287,9 @@ in
|
||||
|
||||
extraConfig = builtins.readFile ./nvim/init.vim;
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
coc-go
|
||||
coc-json
|
||||
coc-nvim
|
||||
coc-rls
|
||||
gruvbox
|
||||
nerdtree
|
||||
nvim-lspconfig
|
||||
rust-vim
|
||||
supertab
|
||||
syntastic
|
||||
|
@@ -132,4 +132,14 @@ autocmd FileType java setlocal omnifunc=javacomplete#Complete
|
||||
" vim-prettier
|
||||
let g:prettier#autoformat = 1
|
||||
|
||||
lua << EOF
|
||||
require'lspconfig'.bashls.setup{}
|
||||
require'lspconfig'.pyright.setup{}
|
||||
require'lspconfig'.rls.setup{}
|
||||
require'lspconfig'.rnix.setup{}
|
||||
require'lspconfig'.terraformls.setup{}
|
||||
require'lspconfig'.tflint.setup{}
|
||||
require'lspconfig'.yamlls.setup{}
|
||||
EOF
|
||||
|
||||
source ~/.config/nvim/statusline.vim
|
||||
|
Reference in New Issue
Block a user