Even more minimal
This commit is contained in:
parent
a8e0ec4b3b
commit
d59ba5dd0e
@ -12,11 +12,6 @@ sign_define({ name = "DiagnosticSignWarn", text = "W" })
|
|||||||
sign_define({ name = "DiagnosticSignHint", text = "H" })
|
sign_define({ name = "DiagnosticSignHint", text = "H" })
|
||||||
sign_define({ name = "DiagnosticSignInfo", text = "I" })
|
sign_define({ name = "DiagnosticSignInfo", text = "I" })
|
||||||
|
|
||||||
-- enable diagnostics virtual text
|
|
||||||
vim.diagnostic.config({
|
|
||||||
virtual_text = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- diagnostic's aren't lsp dependent
|
-- diagnostic's aren't lsp dependent
|
||||||
vim.keymap.set("n", "<leader>vd", function()
|
vim.keymap.set("n", "<leader>vd", function()
|
||||||
vim.diagnostic.open_float()
|
vim.diagnostic.open_float()
|
||||||
@ -28,10 +23,14 @@ vim.keymap.set("n", "]d", function()
|
|||||||
vim.diagnostic.goto_prev()
|
vim.diagnostic.goto_prev()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- lsp related bindings
|
-- lsp capabilites enabler
|
||||||
vim.api.nvim_create_autocmd("LspAttach", {
|
vim.api.nvim_create_autocmd("LspAttach", {
|
||||||
desc = "LSP Actions",
|
desc = "LSP Actions",
|
||||||
callback = function(event)
|
callback = function(event)
|
||||||
|
-- Enable omnifunc
|
||||||
|
vim.bo[event.buf].omnifunc = "v:lua.MiniCompletion.completefunc_lsp"
|
||||||
|
|
||||||
|
-- Buffer local mappings
|
||||||
local opts = { buffer = event.buf }
|
local opts = { buffer = event.buf }
|
||||||
vim.keymap.set("n", "K", function()
|
vim.keymap.set("n", "K", function()
|
||||||
vim.lsp.buf.hover()
|
vim.lsp.buf.hover()
|
||||||
@ -77,6 +76,7 @@ require("lspconfig").hls.setup({})
|
|||||||
require("mini.completion").setup({
|
require("mini.completion").setup({
|
||||||
lsp_completion = {
|
lsp_completion = {
|
||||||
source_func = "omnifunc",
|
source_func = "omnifunc",
|
||||||
|
auto_setup = false,
|
||||||
},
|
},
|
||||||
fallback_action = "<C-x><C-n>",
|
fallback_action = "<C-x><C-n>",
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user