from-scratch rewrite #1
@@ -9,6 +9,10 @@ return {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    "saghen/blink.cmp",
 | 
					    "saghen/blink.cmp",
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					  opts = {
 | 
				
			||||||
 | 
					    inlay_hints = { enabled = true },
 | 
				
			||||||
 | 
					    diagnostics = { virtual_text = true },
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
  config = function()
 | 
					  config = function()
 | 
				
			||||||
    vim.api.nvim_create_autocmd("LspAttach", {
 | 
					    vim.api.nvim_create_autocmd("LspAttach", {
 | 
				
			||||||
      group = vim.api.nvim_create_augroup("kickstart-lsp-attach", { clear = true }),
 | 
					      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")
 | 
					        map("<leader>gwd", require("fzf-lua").diagnostics_workspace, "[G]o [W]orkspace [D]iagnostics")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        -- Find references for the word under your cursor.
 | 
					        -- 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.
 | 
					        -- Jump to the implementation of the word under your cursor.
 | 
				
			||||||
        map("<leader>gi", require("fzf-lua").lsp_implementations, "[G]oto [I]mplementation")
 | 
					        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.
 | 
					        -- 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.
 | 
					        --  This is where a variable was first declared, or where a function is defined, etc.
 | 
				
			||||||
        --  To jump back, press <C-t>.
 | 
					        --  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.
 | 
					        -- WARN: This is not Goto Definition, this is Goto Declaration.
 | 
				
			||||||
        --  For example, in C this would take you to the header.
 | 
					        --  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.
 | 
					        -- Fuzzy find all the symbols in your current document.
 | 
				
			||||||
        map("<leader>gO", require("fzf-lua").lsp_document_symbols, "Open Document Symbols")
 | 
					        map("<leader>gO", require("fzf-lua").lsp_document_symbols, "Open Document Symbols")
 | 
				
			||||||
@@ -161,6 +165,8 @@ return {
 | 
				
			|||||||
      },
 | 
					      },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      bashls = {},
 | 
					      bashls = {},
 | 
				
			||||||
 | 
					      prismals = {},
 | 
				
			||||||
 | 
					      gopls = {},
 | 
				
			||||||
      lua_ls = {
 | 
					      lua_ls = {
 | 
				
			||||||
        -- cmd = { ... },
 | 
					        -- cmd = { ... },
 | 
				
			||||||
        -- filetypes = { ... },
 | 
					        -- filetypes = { ... },
 | 
				
			||||||
@@ -180,6 +186,7 @@ return {
 | 
				
			|||||||
    vim.list_extend(ensure_installed, {
 | 
					    vim.list_extend(ensure_installed, {
 | 
				
			||||||
      "stylua", -- Used to format Lua code
 | 
					      "stylua", -- Used to format Lua code
 | 
				
			||||||
      "prettierd",
 | 
					      "prettierd",
 | 
				
			||||||
 | 
					      "eslint",
 | 
				
			||||||
      "codelldb",
 | 
					      "codelldb",
 | 
				
			||||||
      "gitlab_ci_ls",
 | 
					      "gitlab_ci_ls",
 | 
				
			||||||
      "js-debug-adapter",
 | 
					      "js-debug-adapter",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user