Update latest version plugins + add linter

This commit is contained in:
francois
2026-01-03 19:01:43 +01:00
parent cf21badf25
commit ba36206913
3 changed files with 8 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ Plug('nvim-tree/nvim-tree.lua') --file explorer
Plug('numToStr/Comment.nvim') --easier comments Plug('numToStr/Comment.nvim') --easier comments
Plug('ibhagwan/fzf-lua') --fuzzy finder and grep Plug('ibhagwan/fzf-lua') --fuzzy finder and grep
Plug('folke/twilight.nvim') --surrounding dim Plug('folke/twilight.nvim') --surrounding dim
Plug('dense-analysis/ale') --linter
vim.call('plug#end') vim.call('plug#end')

View File

@@ -4,6 +4,11 @@ local function map(m, k, v)
vim.keymap.set(m, k, v, { noremap = true, silent = true }) vim.keymap.set(m, k, v, { noremap = true, silent = true })
end end
-- set leader
map("", "<Space>", "<Nop>")
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- buffers -- buffers
map("n", "<S-l>", ":bnext<CR>") map("n", "<S-l>", ":bnext<CR>")
map("n", "<S-h>", ":bprevious<CR>") map("n", "<S-h>", ":bprevious<CR>")

View File

@@ -1,3 +1,4 @@
--[[
require("nvim-treesitter.configs").setup { require("nvim-treesitter.configs").setup {
ensure_installed = { "bash", "c", "css", "cpp", "go", "html", "java", "javascript", "json", "lua", "markdown", "markdown_inline", "python", "rust", "tsx", "typescript", "yaml" }, ensure_installed = { "bash", "c", "css", "cpp", "go", "html", "java", "javascript", "json", "lua", "markdown", "markdown_inline", "python", "rust", "tsx", "typescript", "yaml" },
highlight = { highlight = {
@@ -17,4 +18,4 @@ require("nvim-treesitter.configs").setup {
node_decremental = "grm", node_decremental = "grm",
}, },
}, },
} }]]