vim: big update
- removed unnecessary plugins - moved to lsp - added vimrc
This commit is contained in:
parent
4734cdd00b
commit
90b6fb2b80
5 changed files with 39 additions and 20 deletions
10
.config/nvim/.luarc.json
Normal file
10
.config/nvim/.luarc.json
Normal 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
17
.config/nvim/init.lua
Normal 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
|
|
@ -1,4 +0,0 @@
|
|||
set termguicolors
|
||||
set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
||||
let &packpath = &runtimepath
|
||||
source ~/.vimrc
|
Loading…
Add table
Add a link
Reference in a new issue