nvim theme settings
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
-- Initialize core settings first
|
||||
require("config.options")
|
||||
require("config.keymaps")
|
||||
|
||||
-- Load plugin manager
|
||||
require("config.lazy")
|
||||
|
||||
-- Plugin settings
|
||||
require("config.plugins.treesitter")
|
||||
|
||||
-- Configure UI components last
|
||||
require("config.theme")
|
||||
|
2
.config/nvim/lua/config/keymaps.lua
Normal file
2
.config/nvim/lua/config/keymaps.lua
Normal file
@@ -0,0 +1,2 @@
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = "\\"
|
@@ -15,12 +15,6 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||
-- loading lazy.nvim so that mappings are correct.
|
||||
-- This is also a good place to setup other settings (vim.opt)
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = "\\"
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
|
22
.config/nvim/lua/config/plugins/treesitter.lua
Normal file
22
.config/nvim/lua/config/plugins/treesitter.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
-- treesitter.lua
|
||||
require('nvim-treesitter.configs').setup {
|
||||
-- Install these parsers by default
|
||||
ensure_installed = {
|
||||
"lua", "vim", "vimdoc", "javascript", "typescript", "python", "rust",
|
||||
"go", "html", "css", "json", "yaml", "toml", "markdown", "bash"
|
||||
},
|
||||
auto_install = true, -- Automatically install missing parsers
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
indent = { enable = true },
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = "<CR>",
|
||||
node_incremental = "<CR>",
|
||||
node_decremental = "<BS>",
|
||||
},
|
||||
},
|
||||
}
|
2
.config/nvim/lua/config/theme.lua
Normal file
2
.config/nvim/lua/config/theme.lua
Normal file
@@ -0,0 +1,2 @@
|
||||
-- theme.lua
|
||||
vim.cmd[[colorscheme deus]]
|
Reference in New Issue
Block a user