Files
neovim-config/lua/config.lua
2025-11-21 14:07:10 +01:00

101 lines
1.8 KiB
Lua

return {
vim = {
options = {
-- Define leader character
leader = " ",
-- Define tab size
tab_size = 4,
line_numbers = {
-- Enable line numbers
enabled = true,
-- Set relative line numbers
relative = false
}
},
mappings = {
-- Undo last edit (normal/visual/insert)
undo = "<C-z>",
-- Redo last edit (normal/visual/insert)
redo = "<C-y>"
}
},
plugins = {
catppuccin = {
-- Enable catppuccin
enabled = true,
},
nvim_tree = {
-- Enable nvim-tree
enabled = true,
mappings = {
-- Toggle file explorer (normal)
toggle_file_explorer = "<leader>e"
}
},
telescope = {
-- Enable telescope
enabled = true,
mappings = {
-- Open file finder (normal)
open_file_finder = "<leader>f",
-- Open text finder (normal)
open_text_finder = "<leader>g"
}
},
lualine = {
-- Enable lualine
enabled = true
},
nvim_treesitter = {
-- Enable nvim-treesitter
enabled = true,
options = {
parsers = {
"angular", "asm", "bash", "c", "c_sharp", "cmake",
"cpp", "css", "csv", "dockerfile", "gitignore", "go",
"groovy", "html", "htmldjango", "http", "java", "javascript",
"json", "kotlin", "lua", "make", "markdown", "nginx",
"ocaml", "pascal", "php", "powershell", "python",
"ruby", "rust", "scala", "sql", "toml", "tsx",
"twig", "typescript", "vim", "vue", "xml", "yaml"
}
},
mappings = {
-- Start incremental selection (normal/visual)
start_selection = "<CR>",
-- Increment incremental selection (visual)
increment_selection = "<CR>",
-- Decrement incremental selection (visual)
decrement_selection = "<BS>"
}
},
nvim_cmp = {
-- Enable nvim-cmp
enabled = true
},
luasnip = {
-- Enable luasnip
enabled = true
}
}
}