chore: some random updates

This commit is contained in:
Mariano Z. 2025-02-04 21:00:06 -03:00
parent c52e7a518e
commit 74529c72d8
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE
6 changed files with 54 additions and 56 deletions

View file

@ -25,6 +25,13 @@ M.config = function()
nerd_font_variant = "mono",
},
sources = {
default = { "lsp", "path", "snippets", "buffer", "dadbod" },
providers = {
dadbod = { name = "Dadbod", module = "vim_dadbod_completion.blink" },
},
},
signature = {
enabled = true,
window = {
@ -34,11 +41,10 @@ M.config = function()
completion = {
list = {
-- Controls how the completion items are selected
-- 'preselect' will automatically select the first item in the completion list
-- 'manual' will not select any item by default
-- 'auto_insert' will not select any item by default, and insert the completion items automatically when selecting them
selection = "auto_insert",
selection = {
auto_insert = true,
preselect = false,
},
},
menu = {
border = "single",
@ -61,10 +67,6 @@ M.config = function()
},
fuzzy = {
-- When enabled, allows for a number of typos relative to the length of the query
-- Disabling this matches the behavior of fzf
use_typo_resistance = true,
-- Frecency tracks the most recently/frequently used items and boosts the score of the item
use_frecency = true,

View file

@ -24,7 +24,6 @@ M.config = function()
},
})
nmap("K", vim.lsp.buf.hover, { desc = "Hover Documentation" })
nmap("gd", function()
fzf_lua.lsp_definitions({ jump_to_single_result = true })
end, { desc = "Goto Definition" })

View file

@ -1,20 +1,15 @@
local M = {
"SmiteshP/nvim-navic",
"nvimdev/lspsaga.nvim",
}
M.config = function()
require("nvim-navic").setup({
icons = icons.kind,
highlight = true,
lsp = {
auto_attach = true,
require("lspsaga").setup({
lightbulb = {
enable = false,
},
click = true,
separator = " " .. icons.ui.ChevronRight .. " ",
depth_limit = 0,
depth_limit_indicator = "..",
})
vim.o.winbar = "%{%v:lua.require'nvim-navic'.get_location()%}"
nmap("K", "<cmd>Lspsaga hover_doc<cr>")
nmap("pd", "<cmd>Lspsaga peek_definition<cr>")
end
return M

View file

@ -32,6 +32,7 @@ end
local function setup_keymaps(bufnr)
local keymaps = {
{ "<C-h>", vim.lsp.buf.signature_help, "Signature Help" },
-- { "K", vim.lsp.buf.hover, "Hover Doc"},
{ "<leader>cw", vim.lsp.buf.rename, "Rename" },
{ "<leader>r", vim.lsp.buf.rename, "Rename" },
{ "vd", vim.diagnostic.open_float, "Open Diagnostics" },

3
lua/plugins/ui/alpha.lua Normal file → Executable file
View file

@ -5,10 +5,11 @@ local M = {
M.config = function()
local startify = require("alpha.themes.startify")
startify.section.bottom_buttons.val = {
startify.section.top_buttons.val = {
startify.button("e", "New file", "<cmd>ene <CR>"),
startify.button("q", "Quit", "<cmd>q <CR>"),
}
startify.section.bottom_buttons.val = {}
require("alpha").setup(startify.config)
end