nvim theme settings

This commit is contained in:
2025-04-02 20:46:30 +02:00
parent 0634216a1d
commit cc3e4b5a87
5 changed files with 31 additions and 6 deletions

View File

@@ -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")

View File

@@ -0,0 +1,2 @@
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"

View File

@@ -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 = {

View 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>",
},
},
}

View File

@@ -0,0 +1,2 @@
-- theme.lua
vim.cmd[[colorscheme deus]]