Added .luarc.json to get rid of warnings about missing global vim object
This commit is contained in:
3
.luarc.json
Normal file
3
.luarc.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"diagnostics.globals": ["vim"],
|
||||||
|
}
|
||||||
@@ -19,7 +19,6 @@ require('mason-lspconfig').setup({
|
|||||||
'gopls',
|
'gopls',
|
||||||
'pylsp',
|
'pylsp',
|
||||||
'clangd',
|
'clangd',
|
||||||
-- 'volar',
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
---------------------------------------------------
|
||||||
|
--
|
||||||
|
-- Some general setup taken from some tutorial
|
||||||
|
-- which I have forgotten
|
||||||
|
--
|
||||||
|
--------------------------------------------------
|
||||||
|
|
||||||
-- Hint: use `:h <option>` to figure out the meaning if needed
|
-- Hint: use `:h <option>` to figure out the meaning if needed
|
||||||
vim.opt.clipboard = 'unnamedplus' -- use system clipboard
|
vim.opt.clipboard = 'unnamedplus' -- use system clipboard
|
||||||
vim.opt.completeopt = { 'menu', 'menuone', 'noselect' }
|
vim.opt.completeopt = { 'menu', 'menuone', 'noselect' }
|
||||||
@@ -5,7 +12,7 @@ vim.opt.mouse = 'a' -- allow the mouse to be used in Nvim
|
|||||||
|
|
||||||
-- Tab
|
-- Tab
|
||||||
vim.opt.tabstop = 2 -- number of visual spaces per TAB
|
vim.opt.tabstop = 2 -- number of visual spaces per TAB
|
||||||
vim.opt.softtabstop = 2 -- number of spacesin tab when editing
|
vim.opt.softtabstop = 2 -- number of spaces in tab when editing
|
||||||
vim.opt.shiftwidth = 2 -- insert 4 spaces on a tab
|
vim.opt.shiftwidth = 2 -- insert 4 spaces on a tab
|
||||||
vim.opt.expandtab = true -- tabs are spaces, mainly because of python
|
vim.opt.expandtab = true -- tabs are spaces, mainly because of python
|
||||||
|
|
||||||
@@ -15,7 +22,7 @@ vim.opt.relativenumber = false -- add numbers to each line on the left side
|
|||||||
vim.opt.cursorline = true -- highlight cursor line underneath the cursor horizontally
|
vim.opt.cursorline = true -- highlight cursor line underneath the cursor horizontally
|
||||||
vim.opt.splitbelow = true -- open new vertical split bottom
|
vim.opt.splitbelow = true -- open new vertical split bottom
|
||||||
vim.opt.splitright = true -- open new horizontal splits right
|
vim.opt.splitright = true -- open new horizontal splits right
|
||||||
-- vim.opt.termguicolors = true -- enabl 24-bit RGB color in the TUI
|
vim.opt.termguicolors = true -- enable 24-bit RGB color in the TUI
|
||||||
vim.opt.showmode = false -- we are experienced, wo don't need the "-- INSERT --" mode hint
|
vim.opt.showmode = false -- we are experienced, wo don't need the "-- INSERT --" mode hint
|
||||||
|
|
||||||
-- Searching
|
-- Searching
|
||||||
@@ -30,9 +37,11 @@ vim.opt.smartcase = true -- but make it case sensitive if an uppercase is enter
|
|||||||
-- General text editing and cursor movements
|
-- General text editing and cursor movements
|
||||||
--
|
--
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
||||||
-- Wrapping movements and long lines
|
-- Wrapping movements and long lines
|
||||||
vim.opt.whichwrap = "b,s,<,>,[,]" -- wrap backspace, space and left-right cursor keys
|
vim.opt.whichwrap = "b,s,<,>,[,]" -- wrap backspace, space and left-right cursor keys
|
||||||
vim.opt.wrap = false
|
vim.opt.wrap = false
|
||||||
|
|
||||||
|
-- Spelling
|
||||||
vim.opt.spell = true
|
vim.opt.spell = true
|
||||||
vim.opt.spelllang = "de,en"
|
vim.opt.spelllang = "de,en"
|
||||||
|
|||||||
Reference in New Issue
Block a user