Additional dotfiles
This commit is contained in:
+17
-2
@@ -1,6 +1,6 @@
|
||||
-- Options
|
||||
vim.g.mapleader = '<space>'
|
||||
vim.o.number = true
|
||||
vim.o.number = false
|
||||
vim.o.relativenumber = false
|
||||
vim.o.termguicolors = true
|
||||
vim.o.background = light
|
||||
@@ -16,6 +16,9 @@ vim.o.undofile = true
|
||||
vim.o.swapfile = true
|
||||
vim.o.autochdir = true
|
||||
vim.o.scrolloff = 15
|
||||
vim.o.winborder = "solid"
|
||||
vim.o.cursorline = true
|
||||
vim.opt.spelllang = "en_us"
|
||||
|
||||
--Neovide Options
|
||||
vim.o.guifont = "CaskaydiaMono Nerd Font:h14"
|
||||
@@ -34,4 +37,16 @@ vim.api.nvim_set_hl(0, "NormalFloat", { 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" });
|
||||
vim.lsp.enable({ "lua_ls", "rust_analyzer", "ts_ls", "pyright", "html", "cssls", "gopls", "lemminx", "marksman" });
|
||||
|
||||
-- Spell Checking
|
||||
local spell_types = { "text", "plaintex", "typst", "gitcommit", "markdown" }
|
||||
vim.api.nvim_create_augroup("Spellcheck", { clear = true })
|
||||
vim.api.nvim_create_autocmd({ "FileType" }, {
|
||||
group = "Spellcheck",
|
||||
pattern = spell_types,
|
||||
callback = function()
|
||||
vim.opt_local.spell = true
|
||||
end,
|
||||
desc = "Enable spellcheck for defined filetypes"
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user