mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-07-03 06:39:25 +00:00
[neovim] replace neo-tree with snacks.nvim
Replace neo-tree.nvim with snacks.nvim for file explorer functionality and remove several other plugins including: - mini-animate - mini-starter - indent-blankline The snacks.nvim plugin provides better file explorer, dashboard, indentation guides, and other UI improvements in a more cohesive package. Also removed the large file autocommand as snacks.nvim handles this with its bigfile module.
This commit is contained in:
@ -6,21 +6,15 @@ require("plugins.lsp.lsp-saga")
|
||||
local win = require("lspconfig.ui.windows")
|
||||
win.default_options.border = "rounded"
|
||||
|
||||
local signs = {
|
||||
{ name = "DiagnosticSignError", text = "" },
|
||||
{ name = "DiagnosticSignWarn", text = "" },
|
||||
{ name = "DiagnosticSignHint", text = "" },
|
||||
{ name = "DiagnosticSignInfo", text = "" },
|
||||
}
|
||||
|
||||
for _, sign in ipairs(signs) do
|
||||
vim.fn.sign_define(sign.name, { texthl = sign.name, text = sign.text, numhl = "" })
|
||||
end
|
||||
|
||||
local config = {
|
||||
virtual_text = false,
|
||||
signs = {
|
||||
active = signs,
|
||||
text = {
|
||||
[vim.diagnostic.severity.ERROR] = "",
|
||||
[vim.diagnostic.severity.WARN] = "",
|
||||
[vim.diagnostic.severity.INFO] = "",
|
||||
[vim.diagnostic.severity.HINT] = "",
|
||||
},
|
||||
},
|
||||
update_in_insert = true,
|
||||
underline = true,
|
||||
@ -34,15 +28,4 @@ local config = {
|
||||
prefix = "",
|
||||
},
|
||||
}
|
||||
|
||||
vim.diagnostic.config(config)
|
||||
|
||||
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
|
||||
border = "rounded",
|
||||
})
|
||||
|
||||
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {
|
||||
border = "rounded",
|
||||
})
|
||||
|
||||
vim.diagnostic.config(config)
|
||||
|
Reference in New Issue
Block a user