mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
lint
This commit is contained in:
parent
b33413dd18
commit
9082d546f6
19 changed files with 362 additions and 291 deletions
|
|
@ -1,23 +1,23 @@
|
|||
-- vim settings ++ mini.nvim.basics
|
||||
----------------------------------------
|
||||
vim.opt.backspace = "indent,eol,start"
|
||||
vim.opt.completeopt = "menuone"
|
||||
vim.opt.expandtab = true -- insert tabs as spaces
|
||||
vim.opt.inccommand = "split" -- incremental live completion
|
||||
vim.opt.backspace = 'indent,eol,start'
|
||||
vim.opt.completeopt = 'menuone'
|
||||
vim.opt.expandtab = true -- insert tabs as spaces
|
||||
vim.opt.inccommand = 'split' -- incremental live completion
|
||||
vim.opt.laststatus = 1
|
||||
vim.opt.list = true
|
||||
vim.opt.nrformats:append("alpha") -- let Ctrl-a do letters as well
|
||||
vim.opt.path:append("**") -- enable fuzzy :find ing
|
||||
vim.opt.nrformats:append('alpha') -- let Ctrl-a do letters as well
|
||||
vim.opt.path:append('**') -- enable fuzzy :find ing
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.shadafile = "NONE" -- disable shada
|
||||
vim.opt.shiftwidth = 0 -- >> shifts by tabstop
|
||||
vim.opt.showmatch = true -- highlight matching brackets
|
||||
vim.opt.shadafile = 'NONE' -- disable shada
|
||||
vim.opt.shiftwidth = 0 -- >> shifts by tabstop
|
||||
vim.opt.showmatch = true -- highlight matching brackets
|
||||
vim.opt.showmode = true
|
||||
vim.opt.softtabstop = -1 -- backspace removes tabstop
|
||||
vim.opt.softtabstop = -1 -- backspace removes tabstop
|
||||
vim.opt.swapfile = false
|
||||
vim.opt.tabstop = 2 -- 2 space tabs are based
|
||||
vim.opt.updatetime = 250 -- decrease update time
|
||||
vim.opt.virtualedit = "onemore"
|
||||
vim.opt.tabstop = 2 -- 2 space tabs are based
|
||||
vim.opt.updatetime = 250 -- decrease update time
|
||||
vim.opt.virtualedit = 'onemore'
|
||||
|
||||
vim.g.fzf_layout = { window = { width = 0.9, height = 0.6 } }
|
||||
|
||||
|
|
@ -25,16 +25,16 @@ vim.g.fzf_layout = { window = { width = 0.9, height = 0.6 } }
|
|||
vim.cmd([[ hi NormalFloat ctermbg=none ]])
|
||||
|
||||
-- Switch tab length on the fly
|
||||
vim.keymap.set("n", "\\t", function()
|
||||
vim.o.tabstop = vim.o.tabstop == 2 and 4 or 2
|
||||
end, { silent = true, desc = "toggle tabstop"})
|
||||
vim.keymap.set('n', '\\t', function()
|
||||
vim.o.tabstop = vim.o.tabstop == 2 and 4 or 2
|
||||
end, { silent = true, desc = 'toggle tabstop' })
|
||||
|
||||
-- autocmd
|
||||
----------------------------------------
|
||||
local undopath = "~/.local/share/nvim/undo"
|
||||
vim.api.nvim_create_autocmd("VimEnter", {
|
||||
command = "silent !mkdir -p " .. undopath,
|
||||
group = vim.api.nvim_create_augroup("Init", {}),
|
||||
local undopath = '~/.local/share/nvim/undo'
|
||||
vim.api.nvim_create_autocmd('VimEnter', {
|
||||
command = 'silent !mkdir -p ' .. undopath,
|
||||
group = vim.api.nvim_create_augroup('Init', {}),
|
||||
})
|
||||
|
||||
-- Configure Neovim diagnostic messages
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue