mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 10:33:49 -03:00
chore: some random updates
This commit is contained in:
parent
c52e7a518e
commit
74529c72d8
6 changed files with 54 additions and 56 deletions
|
@ -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,
|
||||
|
||||
|
|
|
@ -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" })
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
3
lua/plugins/ui/alpha.lua
Normal file → Executable 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue