mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
chore(nvim): Navbuddy UI enhancements, plugins removed, and code cleanup
- Navbuddy: size increased - Navbuddy: added keybindings: o -> preview, f -> search - LSP: disable inlayHints by default - Removed 2 plugins: bigfile, obsidian
This commit is contained in:
@@ -43,12 +43,8 @@ return {
|
||||
map("gd", require("telescope.builtin").lsp_definitions, "[G]oto [D]efinition")
|
||||
map("<F12>", require("telescope.builtin").lsp_definitions, "[G]oto [D]efinition")
|
||||
map("gD", vim.lsp.buf.declaration, "[G]oto [D]eclaration")
|
||||
-- map("gr", require("telescope.builtin").lsp_references, "[G]oto [R]eferences")
|
||||
map("gI", require("telescope.builtin").lsp_implementations, "[G]oto [I]mplementation")
|
||||
|
||||
-- Fuzzy find all the symbols in your current document.
|
||||
-- Symbols are things like variables, functions, types, etc.
|
||||
map("<leader>o", require("telescope.builtin").lsp_document_symbols, "Search Document Symbols")
|
||||
map("<leader>cs", require("telescope.builtin").lsp_document_symbols, "Search Document Symbols")
|
||||
map("<leader>cS", require("telescope.builtin").lsp_dynamic_workspace_symbols, "Search Workspace Symbols")
|
||||
map("<leader>ci", require("telescope.builtin").lsp_implementations, "Goto Implementation")
|
||||
@@ -89,12 +85,10 @@ return {
|
||||
})
|
||||
end
|
||||
|
||||
-- TODO: Make inlay_hint enabled by default
|
||||
-- Change this keymap
|
||||
--
|
||||
-- The following code creates a keymap to toggle inlay hints
|
||||
if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then
|
||||
map("<leader>ni", function()
|
||||
-- vim.lsp.inlay_hint.enable()
|
||||
|
||||
map("<leader>cI", function()
|
||||
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled({ bufnr = event.buf }))
|
||||
end, "Toggle Inlay Hints")
|
||||
end
|
||||
@@ -111,31 +105,25 @@ return {
|
||||
vim.diagnostic.config({ signs = { text = diagnostic_signs } })
|
||||
end
|
||||
|
||||
-- LSP servers and clients are able to communicate to each other what features they support.
|
||||
-- By default, Neovim doesn't support everything that is in the LSP specification.
|
||||
-- When you add nvim-cmp, luasnip, etc. Neovim now has *more* capabilities.
|
||||
-- Here, we broadcast the new capabilities to the servers.
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities = vim.tbl_deep_extend("force", capabilities, require("cmp_nvim_lsp").default_capabilities())
|
||||
|
||||
-- Enable the following language servers
|
||||
-- Add any additional override configuration in the following tables. Available keys are:
|
||||
-- Available keys are:
|
||||
-- - cmd (table): Override the default command used to start the server
|
||||
-- - filetypes (table): Override the default list of associated filetypes for the server
|
||||
-- - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features.
|
||||
-- - settings (table): Override the default settings passed when initializing the server.
|
||||
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
||||
local servers = {
|
||||
html = { filetypes = { "html", "twig", "hbs" } },
|
||||
html = {
|
||||
-- cmd = { ... },
|
||||
-- filetypes = { ... },
|
||||
-- capabilities = {},
|
||||
filetypes = { "html", "twig", "hbs" },
|
||||
},
|
||||
cssls = {},
|
||||
jsonls = {},
|
||||
|
||||
bashls = { filetypes = { "sh", "bash", "zsh" } },
|
||||
pylsp = {},
|
||||
lua_ls = {
|
||||
-- cmd = { ... },
|
||||
-- filetypes = { ... },
|
||||
-- capabilities = {},
|
||||
settings = {
|
||||
Lua = {
|
||||
workspace = { checkThirdParty = false },
|
||||
@@ -204,7 +192,6 @@ return {
|
||||
dockerls = {},
|
||||
docker_compose_language_service = {},
|
||||
|
||||
-- marksman = {},
|
||||
-- ltex = {
|
||||
-- filetypes = { "markdown", "text" },
|
||||
-- flags = { debounce_text_changes = 3000 },
|
||||
|
||||
Reference in New Issue
Block a user