lsps and settings
This commit is contained in:
parent
b44a2b20de
commit
481ad345a1
@ -9,6 +9,10 @@ return {
|
||||
|
||||
"saghen/blink.cmp",
|
||||
},
|
||||
opts = {
|
||||
inlay_hints = { enabled = true },
|
||||
diagnostics = { virtual_text = true },
|
||||
},
|
||||
config = function()
|
||||
vim.api.nvim_create_autocmd("LspAttach", {
|
||||
group = vim.api.nvim_create_augroup("kickstart-lsp-attach", { clear = true }),
|
||||
@ -28,7 +32,7 @@ return {
|
||||
map("<leader>gwd", require("fzf-lua").diagnostics_workspace, "[G]o [W]orkspace [D]iagnostics")
|
||||
|
||||
-- Find references for the word under your cursor.
|
||||
map('gr', require('fzf-lua').lsp_references, '[G]oto [R]eferences')
|
||||
map("gr", require("fzf-lua").lsp_references, "[G]oto [R]eferences")
|
||||
|
||||
-- Jump to the implementation of the word under your cursor.
|
||||
map("<leader>gi", require("fzf-lua").lsp_implementations, "[G]oto [I]mplementation")
|
||||
@ -36,11 +40,11 @@ return {
|
||||
-- Jump to the definition of the word under your cursor.
|
||||
-- This is where a variable was first declared, or where a function is defined, etc.
|
||||
-- To jump back, press <C-t>.
|
||||
map('gd', require('fzf-lua').lsp_definitions, '[G]oto [D]efinition')
|
||||
map("gd", require("fzf-lua").lsp_definitions, "[G]oto [D]efinition")
|
||||
|
||||
-- WARN: This is not Goto Definition, this is Goto Declaration.
|
||||
-- For example, in C this would take you to the header.
|
||||
map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
||||
map("gD", vim.lsp.buf.declaration, "[G]oto [D]eclaration")
|
||||
|
||||
-- Fuzzy find all the symbols in your current document.
|
||||
map("<leader>gO", require("fzf-lua").lsp_document_symbols, "Open Document Symbols")
|
||||
@ -161,6 +165,8 @@ return {
|
||||
},
|
||||
|
||||
bashls = {},
|
||||
prismals = {},
|
||||
gopls = {},
|
||||
lua_ls = {
|
||||
-- cmd = { ... },
|
||||
-- filetypes = { ... },
|
||||
@ -180,6 +186,7 @@ return {
|
||||
vim.list_extend(ensure_installed, {
|
||||
"stylua", -- Used to format Lua code
|
||||
"prettierd",
|
||||
"eslint",
|
||||
"codelldb",
|
||||
"gitlab_ci_ls",
|
||||
"js-debug-adapter",
|
||||
|
Loading…
Reference in New Issue
Block a user