vim: big update

- removed unnecessary plugins
- moved to lsp
- added vimrc
This commit is contained in:
Tobias Schmidl 2024-10-22 10:07:49 +02:00
parent 4734cdd00b
commit 90b6fb2b80
5 changed files with 39 additions and 20 deletions

10
.config/nvim/.luarc.json Normal file
View file

@ -0,0 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"runtime.version": "LuaJIT",
"Lua.format.defaultConfig": {
"indent_style": "space",
"indent_size": "2"
},
"Lua.diagnostics.globals": ["vim" ]
}

17
.config/nvim/init.lua Normal file
View file

@ -0,0 +1,17 @@
vim.o.termguicolors = true
vim.opt.runtimepath:append("~/.vim")
vim.opt.runtimepath:append("~/.vim/after")
vim.opt.packpath:append(vim.opt.runtimepath)
vim.cmd('source ~/.vimrc')
require("formatter").setup()
require("mason").setup()
require("mason-lspconfig").setup()
require("mason-lspconfig").setup_handlers {
function (server_name)
require("lspconfig")[server_name].setup{}
end
}
local ok, _ = pcall(require, 'schtobia')
if not ok then
print("No custom.lua found")
end

View file

@ -1,4 +0,0 @@
set termguicolors
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc