Additional dotfiles

This commit is contained in:
2025-11-03 02:29:38 -06:00
parent 3d08f6f795
commit 9cc95f2f44
49 changed files with 95 additions and 1902 deletions
+11 -1
View File
@@ -34,10 +34,12 @@ require("config.lazy")
vim.cmd.colorscheme("everforest")
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
vim.api.nvim_set_hl(0, 'FloatBorder', { bg = 'none' })
vim.api.nvim_set_hl(0, 'Pmenu', { bg = 'none' })
-- Autocompletion
vim.diagnostic.config({ virtual_text = { current_line = true } })
vim.lsp.enable({ "lua_ls", "rust_analyzer", "ts_ls", "pyright", "html", "cssls", "gopls", "lemminx", "marksman" });
vim.lsp.enable({ "lua_ls", "rust_analyzer", "ts_ls", "pyright", "html", "cssls", "cssmodules_ls", "gopls", "lemminx", "marksman" });
-- Spell Checking
local spell_types = { "text", "plaintex", "typst", "gitcommit", "markdown" }
@@ -50,3 +52,11 @@ vim.api.nvim_create_autocmd({ "FileType" }, {
end,
desc = "Enable spellcheck for defined filetypes"
})
-- Autosave on exit insert mode
vim.o.autowriteall = true
vim.api.nvim_create_autocmd({ 'InsertLeavePre', 'TextChanged', 'TextChangedP' }, {
pattern = '*', callback = function()
vim.cmd('silent! write')
end
})