From b2c0f00ba9c301db3e2932fe39c47d9b045fb439 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Mon, 4 Nov 2024 07:39:29 -0500 Subject: [PATCH] feat(programs/neovim): lsps, misc --- users/uncenter/programs/neovim.nix | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/users/uncenter/programs/neovim.nix b/users/uncenter/programs/neovim.nix index bfcfafc..2742cb4 100644 --- a/users/uncenter/programs/neovim.nix +++ b/users/uncenter/programs/neovim.nix @@ -18,6 +18,7 @@ in tabstop = 4; nu = true; relativenumber = false; + signcolumn = "yes"; }; colorschemes.catppuccin = { @@ -31,6 +32,7 @@ in plugins = { lualine.enable = true; nvim-autopairs.enable = true; + ts-autotag.enable = true; cmp.enable = true; cmp-path.enable = true; @@ -55,6 +57,38 @@ in ]; }; + lsp = { + enable = true; + servers = { + ts_ls.enable = true; # TS/JS + cssls.enable = true; # CSS + superhtml = { + enable = true; + package = pkgs.superhtml; + }; + eslint.enable = true; # Web + tailwindcss.enable = true; # TailwindCSS + html.enable = true; # HTML + astro.enable = true; # AstroJS + svelte.enable = false; # Svelte + vuels.enable = false; # Vue + marksman.enable = true; # Markdown + nil_ls.enable = true; # Nix + bashls.enable = true; # Bash + clangd.enable = true; # C/C++ + csharp_ls.enable = true; # C# + yamlls.enable = true; # YAML + gleam.enable = true; + ruff.enable = true; + statix.enable = true; + gopls = { + # Golang + enable = true; + autostart = true; + }; + }; + }; + rustaceanvim = { enable = true; settings.server.default_settings.rust-analyzer = {