added more LSP Servers to neovim

This commit is contained in:
Salar Rahmanian 2021-08-04 22:37:43 -07:00
parent d1cebc7e24
commit 42b944eeb4
2 changed files with 13 additions and 1 deletions

View file

@ -49,6 +49,14 @@
enable = true;
};
programs.kitty = {
enable = true;
font.name = "FiraCode Nerd Font Mono Retina";
settings = {
font_size = 20;
};
};
programs.starship = {
enable = true;
settings = {
@ -214,6 +222,10 @@
pkgs.nixFlakes
pkgs.nixfmt
pkgs.nodePackages.pyright
pkgs.nodePackages.typescript-language-server
pkgs.nodePackages.vscode-html-languageserver-bin
pkgs.nodePackages.vscode-json-languageserver
pkgs.nodePackages.yaml-language-server
pkgs.openssl
pkgs.pandoc
pkgs.pgcli

View file

@ -312,7 +312,7 @@ _G.load_config = function()
end
-- Enable the following language servers
local servers = { 'jdtls', 'pyright', 'rnix', 'sourcekit' }
local servers = { 'html', 'jdtls', 'jsonls', 'pyright', 'rnix', 'sourcekit', 'tsserver', 'yamlls' }
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup { on_attach = on_attach }
end