Work on fixing dotfiles install on Ubuntu

This commit is contained in:
Thomas Avé 2024-03-15 14:04:06 +01:00
parent 94594a1b5f
commit ae25757f65
2 changed files with 4 additions and 3 deletions

View File

@ -37,7 +37,7 @@ fi
################################################# #################################################
if $NVIM; then 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 if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
$SUDO pacman -Sy --needed --noconfirm $dependencies npm go fd dotnet-sdk $SUDO pacman -Sy --needed --noconfirm $dependencies npm go fd dotnet-sdk
elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then

View File

@ -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 { require('lspconfig').ltex.setup {
capabilities = capabilities, capabilities = capabilities,
on_attach = function(_, _) on_attach = function(_, _)
@ -260,11 +261,11 @@ return {
end, end,
settings = { settings = {
ltex = { ltex = {
enabled = { "bibtex", "gitcommit", "markdown", "org", "tex", "restructuredtext", "rsweave", "latex", "quarto", "rmd", "context", "html", "xhtml", "typst" }, enabled = filetypes,
language = "en-GB" language = "en-GB"
}, },
}, },
filetypes = { "bib", "gitcommit", "markdown", "org", "plaintex", "rst", "rnoweb", "tex", "pandoc", "quarto", "rmd", "context", "html", "xhtml" , "typst"} filetypes = filetypes
} }
vim.diagnostic.config({ vim.diagnostic.config({