From ae25757f6592b2a21590e63812bc11b60dcf0703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Fri, 15 Mar 2024 14:04:06 +0100 Subject: [PATCH] Work on fixing dotfiles install on Ubuntu --- install.sh | 2 +- nvim/lua/plugins/nvim-cmp.lua | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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({