mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-03-15 18:19:00 +00:00
nixvimConfigs/trovebelt: update LSP config and enable installation of its servers
Just to make the all-encompassing Neovim config more usable.
This commit is contained in:
parent
75ca42754d
commit
f6dc11606b
@ -32,7 +32,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Enable all of the debugging extensoins.
|
# Enable all of the debugging extensoins.
|
||||||
plugins.dap.extensions.dap-go.enable = true;
|
plugins.dap-go.enable = true;
|
||||||
plugins.dap.extensions.dap-python.enable = true;
|
plugins.dap-python.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,8 @@ in {
|
|||||||
options.nixvimConfigs.trovebelt.setups.lsp.enable =
|
options.nixvimConfigs.trovebelt.setups.lsp.enable =
|
||||||
lib.mkEnableOption "LSP setup alongside the preferred servers installation";
|
lib.mkEnableOption "LSP setup alongside the preferred servers installation";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
|
{
|
||||||
plugins.lsp.enable = true;
|
plugins.lsp.enable = true;
|
||||||
|
|
||||||
# Make all of the preferred language servers.
|
# Make all of the preferred language servers.
|
||||||
@ -18,18 +19,18 @@ in {
|
|||||||
"beancount" # For Beancount.
|
"beancount" # For Beancount.
|
||||||
"bashls" # For Bash.
|
"bashls" # For Bash.
|
||||||
"clangd" # For C/C++.
|
"clangd" # For C/C++.
|
||||||
"clojure-lsp" # For Clojure.
|
"clojure_lsp" # For Clojure.
|
||||||
"cmake" # For CMake.
|
"cmake" # For CMake.
|
||||||
"cssls" # For CSS.
|
"cssls" # For CSS.
|
||||||
"dagger" # For Dagger.
|
"dagger" # For Dagger.
|
||||||
"dartls" # For Dart.
|
"dartls" # For Dart.
|
||||||
"denols" # For Deno.
|
"denols" # For Deno.
|
||||||
"dhall-lsp-server" # For Dhall.
|
"dhall_lsp_server" # For Dhall.
|
||||||
"dockerls" # For Dockerfiles.
|
"dockerls" # For Dockerfiles.
|
||||||
"efm" # For whatever.
|
"efm" # For whatever.
|
||||||
"elixirls" # For Elixir.
|
"elixirls" # For Elixir.
|
||||||
"elmls" # For Elm.
|
"elmls" # For Elm.
|
||||||
"emmet-ls" # For Emmet support.
|
"emmet_ls" # For Emmet support.
|
||||||
"eslint" # For JavaScript.
|
"eslint" # For JavaScript.
|
||||||
"gdscript" # For Godot.
|
"gdscript" # For Godot.
|
||||||
"gopls" # For Go.
|
"gopls" # For Go.
|
||||||
@ -37,25 +38,25 @@ in {
|
|||||||
"hls" # For Haskell.
|
"hls" # For Haskell.
|
||||||
"html" # For HTML.
|
"html" # For HTML.
|
||||||
"htmx" # For HTMX.
|
"htmx" # For HTMX.
|
||||||
"java-language-server" # For Java.
|
"java_language_server" # For Java.
|
||||||
"jsonls" # For JSON.
|
"jsonls" # For JSON.
|
||||||
"julials" # For Julia.
|
"julials" # For Julia.
|
||||||
"kotlin-language-server" # For Kotlin.
|
"kotlin_language_server" # For Kotlin.
|
||||||
"lemminx" # For XML.
|
"lemminx" # For XML.
|
||||||
"lua-ls" # For Lua.
|
"lua_ls" # For Lua.
|
||||||
"nil-ls" # For Nix.
|
"nil_ls" # For Nix.
|
||||||
"nushell" # For Nushell.
|
"nushell" # For Nushell.
|
||||||
"perlpls" # For Perl.
|
"perlpls" # For Perl.
|
||||||
"phpactor" # For PHP.
|
"phpactor" # For PHP.
|
||||||
"pyright" # For Python.
|
"pyright" # For Python.
|
||||||
"rust-analyzer" # For Rust.
|
"rust_analyzer" # For Rust.
|
||||||
"solargraph" # For Ruby.
|
"solargraph" # For Ruby.
|
||||||
"svelte" # For Svelte.
|
"svelte" # For Svelte.
|
||||||
"taplo" # For TOML.
|
"taplo" # For TOML.
|
||||||
"tailwindcss" # For Tailwind CSS.
|
"tailwindcss" # For Tailwind CSS.
|
||||||
"terraformls" # For Terraform.
|
"terraformls" # For Terraform.
|
||||||
"tsserver" # For TypeScript.
|
"ts_ls" # For TypeScript.
|
||||||
"typst-lsp" # For Typst.
|
"typst_lsp" # For Typst.
|
||||||
"vls" # For V.
|
"vls" # For V.
|
||||||
"volar" # For Vue.
|
"volar" # For Vue.
|
||||||
"yamlls" # For YAML.
|
"yamlls" # For YAML.
|
||||||
@ -65,5 +66,17 @@ in {
|
|||||||
mkEnableServerConfig = server:
|
mkEnableServerConfig = server:
|
||||||
lib.nameValuePair server { enable = true; };
|
lib.nameValuePair server { enable = true; };
|
||||||
in lib.listToAttrs (builtins.map mkEnableServerConfig servers);
|
in lib.listToAttrs (builtins.map mkEnableServerConfig servers);
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
plugins.lsp.servers.rust_analyzer = {
|
||||||
|
installCargo = lib.mkDefault true;
|
||||||
|
installRustc = lib.mkDefault true;
|
||||||
|
};
|
||||||
|
|
||||||
|
plugins.lsp.servers.hls = {
|
||||||
|
installGhc = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
@ -41,12 +41,15 @@ in {
|
|||||||
# Enable them status bars.
|
# Enable them status bars.
|
||||||
plugins.lualine = {
|
plugins.lualine = {
|
||||||
enable = true;
|
enable = true;
|
||||||
iconsEnabled = true;
|
settings = {
|
||||||
|
options = {
|
||||||
|
icons_enabled = true;
|
||||||
globalstatus = true;
|
globalstatus = true;
|
||||||
alwaysDivideMiddle = true;
|
always_divide_middle = true;
|
||||||
|
};
|
||||||
|
|
||||||
# Disable the section separators.
|
# Disable the section separators.
|
||||||
sectionSeparators = {
|
section_separators = {
|
||||||
left = "";
|
left = "";
|
||||||
right = "";
|
right = "";
|
||||||
};
|
};
|
||||||
@ -57,4 +60,5 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user