diff options
Diffstat (limited to '')
| -rw-r--r-- | home/nvim/default.nix | 7 | ||||
| -rw-r--r-- | home/nvim/lsp.lua | 3 | ||||
| -rw-r--r-- | home/nvim/plugins/treesitter.lua | 3 |
3 files changed, 10 insertions, 3 deletions
diff --git a/home/nvim/default.nix b/home/nvim/default.nix index 0c1a32a..efb19b4 100644 --- a/home/nvim/default.nix +++ b/home/nvim/default.nix @@ -30,8 +30,8 @@ # LSP biome # javascript, biome - clippy # rust error checking clang-tools # C + clippy # rust error checking dprint # format engine for multiple langeuages dprint-plugins.dprint-plugin-markdown # markdown dprint-plugins.dprint-plugin-toml # toml @@ -47,11 +47,14 @@ nodePackages.typescript-language-server # javascript validation ruff # python format and lint rust-analyzer - tex-fmt # latex + tex-fmt # latex fmt texlab # latex lsp tree-sitter # generate tree-sitter grammars ty # python type checker written in rust + vale # spellcheck vale-ls # prose (md, asciidoc) + valeStyles.microsoft # spellcheck linters + valeStyles.write-good # spellcheck linters ]; extraPython3Packages = ps: [ diff --git a/home/nvim/lsp.lua b/home/nvim/lsp.lua index 2b8a730..7e124bd 100644 --- a/home/nvim/lsp.lua +++ b/home/nvim/lsp.lua @@ -214,7 +214,7 @@ vim.lsp.config("clangd", { vim.lsp.config("vale_ls", { cmd = { "vale-ls" }, - filetypes = { "markdown", "text", "tex", "rst", "adoc", "asciidoc" }, + filetypes = { "markdown", "text", "tex", "rst", "adoc", "asciidoc", "html" }, root_markers = { ".vale.ini" }, }) @@ -289,6 +289,7 @@ vim.lsp.config("bashls", { vim.lsp.config("texlab", { cmd = { "texlab" }, filetypes = { "tex", "plaintex", "bib" }, + latexFormatter = "tex-fmt" }) vim.lsp.enable({ diff --git a/home/nvim/plugins/treesitter.lua b/home/nvim/plugins/treesitter.lua index c408901..7f470b0 100644 --- a/home/nvim/plugins/treesitter.lua +++ b/home/nvim/plugins/treesitter.lua @@ -9,4 +9,7 @@ require "nvim-treesitter".setup { max_file_lines = 2000, }, additional_vim_regex_highlighting = false, + indent = { + enable = true, + }, } |
