From 481ad345a167bfb0e3712a8107fa65739c3005be Mon Sep 17 00:00:00 2001 From: "markus.dieckmann" Date: Mon, 12 May 2025 13:00:11 +0200 Subject: [PATCH] lsps and settings --- nvim/lua/plugins/lsp.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index d116fb5..c394c37 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -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("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("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 . - 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("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",