kitchen sink...
just gonna put the changes that I can remember making here: - replace blink with native completion (omnifunc) - remove some unneeded plugins - add a misc function for making sure complex bindings don't cause flickering - remove some stale snippets - remove folding (I don't find myself folding that often)
This commit is contained in:
33
lua/core/lsp/init.lua
Normal file
33
lua/core/lsp/init.lua
Normal file
@ -0,0 +1,33 @@
|
||||
local M = {}
|
||||
|
||||
--- setup vim lsp options
|
||||
function M.setup()
|
||||
-- confgiure lsp
|
||||
vim.diagnostic.config {
|
||||
virtual_text = false,
|
||||
virtual_lines = {
|
||||
current_line = true
|
||||
},
|
||||
update_in_insert = false,
|
||||
underline = true,
|
||||
severity_sort = true,
|
||||
signs = {
|
||||
text = {
|
||||
[vim.diagnostic.severity.ERROR] = "x",
|
||||
[vim.diagnostic.severity.WARN] = "!",
|
||||
[vim.diagnostic.severity.INFO] = "i",
|
||||
[vim.diagnostic.severity.HINT] = "h"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-- set default capabilities and attach function
|
||||
vim.lsp.config['*'] = {
|
||||
capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
}
|
||||
|
||||
require("core.lsp.binds")
|
||||
require("core.lsp.completion")
|
||||
end
|
||||
|
||||
return M
|
Reference in New Issue
Block a user