update config

This commit is contained in:
2026-06-02 21:09:06 +02:00
parent e306d12c1f
commit 7d2daa9f06
8 changed files with 219 additions and 150 deletions
+42
View File
@@ -5,3 +5,45 @@ local Snacks = require ("snacks")
--
vim.keymap.del("n", "<leader>e")
vim.keymap.set("n", "<leader>e", function() Snacks.explorer.open() end, { desc = "File Explorer" })
require("oil").setup({
default_file_explorer = true,
})
local alpha = function()
return string.format("%x", math.floor(255 * vim.g.transparency or 0.8))
end
vim.g.neovide_opacity = 0.0
vim.g.transparency = 1.0
vim.g.neovide_background_color = "#0f1117" .. alpha()
vim.g.neovide_scale_factor = 0.8
vim.g.neovide_scroll_animation_length = 0.1
vim.g.neovide_cursor_animation_length = 0.09
vim.api.nvim_create_autocmd('FileType', {
callback = function(ev)
local lang = vim.treesitter.language.get_lang(ev.match)
local available_langs = require('nvim-treesitter').get_available()
local is_available = vim.tbl_contains(available_langs, lang)
if is_available then
local installed_langs = require('nvim-treesitter').get_installed()
local installed = vim.tbl_contains(installed_langs, lang)
if not installed then
require('nvim-treesitter').install(lang):wait()
end
vim.treesitter.start()
require('nvim-treesitter').indentexpr()
end
end,
})
require('boole').setup({
mappings = {
-- increment = '<C-a>',
decrement = '<C-x>'
},
allow_caps_additions = {
{'enable', 'disable'},
{'true', 'false'}
}
})