diff --git a/install.sh b/install.sh index ff0cd9f..29bf5f2 100755 --- a/install.sh +++ b/install.sh @@ -37,7 +37,7 @@ fi ################################################# if $NVIM; then - dependencies="neovim git unzip fzf cmake gcc make curl wget ripgrep npm" + dependencies="neovim git unzip fzf cmake gcc make curl wget ripgrep" if [[ $OS == "NAME=\"Arch Linux\"" ]]; then $SUDO pacman -Sy --needed --noconfirm $dependencies npm go fd dotnet-sdk elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then diff --git a/nvim/lua/plugins/nvim-cmp.lua b/nvim/lua/plugins/nvim-cmp.lua index b78d389..82479b4 100644 --- a/nvim/lua/plugins/nvim-cmp.lua +++ b/nvim/lua/plugins/nvim-cmp.lua @@ -250,6 +250,7 @@ return { }, } + local filetypes = { "bibtex", "gitcommit", "markdown", "org", "tex", "restructuredtext", "rsweave", "latex", "quarto", "rmd", "context", "html", "xhtml", "typst", "mail" } require('lspconfig').ltex.setup { capabilities = capabilities, on_attach = function(_, _) @@ -260,11 +261,11 @@ return { end, settings = { ltex = { - enabled = { "bibtex", "gitcommit", "markdown", "org", "tex", "restructuredtext", "rsweave", "latex", "quarto", "rmd", "context", "html", "xhtml", "typst" }, + enabled = filetypes, language = "en-GB" }, }, - filetypes = { "bib", "gitcommit", "markdown", "org", "plaintex", "rst", "rnoweb", "tex", "pandoc", "quarto", "rmd", "context", "html", "xhtml" , "typst"} + filetypes = filetypes } vim.diagnostic.config({