fixing virtual sort

main
KeeganForelight 2 years ago
parent 63b960cad2
commit 88a520f7c0

@ -87,6 +87,29 @@ lspconfig.pylsp.setup{}
-- TypeScript -- TypeScript
lspconfig.tsserver.setup{} lspconfig.tsserver.setup{}
-- Fix virtual text going off screen
vim.diagnostic.config({
virtual_text = false,
signs = true,
underline = true,
update_in_insert = false,
severity_sort = true,
})
vim.api.nvim_create_autocmd("CursorHold", {
buffer = bufnr,
callback = function()
local opts = {
focusable = false,
close_events = { "BufLeave", "CursorMoved", "InsertEnter", "FocusLost" },
border = 'rounded',
source = 'always',
prefix = ' ',
scope = 'cursor',
}
vim.diagnostic.open_float(nil, opts)
end
})
-- lsp mappingsd -- lsp mappingsd
vim.keymap.set('n', '<leader>gD', vim.lsp.buf.declaration, opts) vim.keymap.set('n', '<leader>gD', vim.lsp.buf.declaration, opts)
vim.keymap.set('n', '<leader>gd', vim.lsp.buf.definition, opts) vim.keymap.set('n', '<leader>gd', vim.lsp.buf.definition, opts)

Loading…
Cancel
Save