modified structure
This commit is contained in:
90
lua/config.lua
Normal file
90
lua/config.lua
Normal file
@@ -0,0 +1,90 @@
|
||||
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 (insert)
|
||||
undo = "<C-z>",
|
||||
|
||||
-- Redo last edit (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", "odin", "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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user