[nvim] add grammalect

This commit is contained in:
Gregory Trolliet 2024-10-19 16:26:07 +02:00
parent d533425bcd
commit 46d8707e32
4 changed files with 38 additions and 3 deletions

View file

@ -9,6 +9,7 @@ vim.opt.relativenumber = true -- display relative line numbers
vim.opt.tabstop = 4 -- number of columns occupied by a tab character
vim.opt.shiftwidth = 4 -- width for autoindents
vim.opt.softtabstop = 4 -- see multiple spaces as tabstops so <BS> does the right thing
vim.opt.linebreak = true -- wrap lines between words
vim.opt.listchars:append {
eol = "$",
@ -20,3 +21,5 @@ vim.opt.listchars:append {
precedes = "<",
}
vim.opt.list = true
vim.opt.spelllang = {'fr', 'en'}

View file

@ -0,0 +1,3 @@
return {
"dpelle/vim-Grammalecte",
}

View file

@ -1,6 +1,14 @@
return {
"nvim-treesitter/nvim-treesitter",
build = function()
require("nvim-treesitter.install").update({ with_sync = true })()
end,
build = ":TSUpdate",
config = function ()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html" },
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end
}