from-scratch rewrite #1
@@ -4,6 +4,21 @@ return {
 | 
				
			|||||||
    { "williamboman/mason.nvim", opts = {} },
 | 
					    { "williamboman/mason.nvim", opts = {} },
 | 
				
			||||||
    "williamboman/mason-lspconfig.nvim",
 | 
					    "williamboman/mason-lspconfig.nvim",
 | 
				
			||||||
    "WhoIsSethDaniel/mason-tool-installer.nvim",
 | 
					    "WhoIsSethDaniel/mason-tool-installer.nvim",
 | 
				
			||||||
 | 
					    "yioneko/nvim-vtsls",
 | 
				
			||||||
 | 
					    opts = {
 | 
				
			||||||
 | 
					      settings = {
 | 
				
			||||||
 | 
					        typescript = {
 | 
				
			||||||
 | 
					          inlayHints = {
 | 
				
			||||||
 | 
					            parameterNames = { enabled = "literals" },
 | 
				
			||||||
 | 
					            parameterTypes = { enabled = true },
 | 
				
			||||||
 | 
					            variableTypes = { enabled = true },
 | 
				
			||||||
 | 
					            propertyDeclarationTypes = { enabled = true },
 | 
				
			||||||
 | 
					            functionLikeReturnTypes = { enabled = true },
 | 
				
			||||||
 | 
					            enumMemberValues = { enabled = true },
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    { "j-hui/fidget.nvim",       opts = {} },
 | 
					    { "j-hui/fidget.nvim",       opts = {} },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -14,6 +29,8 @@ return {
 | 
				
			|||||||
    diagnostics = { virtual_text = true },
 | 
					    diagnostics = { virtual_text = true },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  config = function()
 | 
					  config = function()
 | 
				
			||||||
 | 
					    inlay_hints = { enabled = true }
 | 
				
			||||||
 | 
					    diagnostics = { virtual_text = true }
 | 
				
			||||||
    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 }),
 | 
				
			||||||
      callback = function(event)
 | 
					      callback = function(event)
 | 
				
			||||||
@@ -161,13 +178,44 @@ return {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      rust_analyzer = {},
 | 
					      rust_analyzer = {},
 | 
				
			||||||
      vtsls = {
 | 
					      vtsls = {
 | 
				
			||||||
        settings = {},
 | 
					        -- explicitly add default filetypes, so that we can extend
 | 
				
			||||||
 | 
					        -- them in related extras
 | 
				
			||||||
 | 
					        filetypes = {
 | 
				
			||||||
 | 
					          "javascript",
 | 
				
			||||||
 | 
					          "javascriptreact",
 | 
				
			||||||
 | 
					          "javascript.jsx",
 | 
				
			||||||
 | 
					          "typescript",
 | 
				
			||||||
 | 
					          "typescriptreact",
 | 
				
			||||||
 | 
					          "typescript.tsx",
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        settings = {
 | 
				
			||||||
 | 
					          typescript = {
 | 
				
			||||||
 | 
					            updateImportsOnFileMove = { enabled = "always" },
 | 
				
			||||||
 | 
					            inlayHints = {
 | 
				
			||||||
 | 
					              parameterNames = { enabled = "literals" },
 | 
				
			||||||
 | 
					              parameterTypes = { enabled = true },
 | 
				
			||||||
 | 
					              variableTypes = { enabled = true },
 | 
				
			||||||
 | 
					              propertyDeclarationTypes = { enabled = true },
 | 
				
			||||||
 | 
					              functionLikeReturnTypes = { enabled = true },
 | 
				
			||||||
 | 
					              enumMemberValues = { enabled = true },
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            suggest = {
 | 
				
			||||||
 | 
					              completeFunctionCalls = true,
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
 | 
					 | 
				
			||||||
      bashls = {},
 | 
					      bashls = {},
 | 
				
			||||||
      prismals = {},
 | 
					      prismals = {},
 | 
				
			||||||
      gopls = {},
 | 
					      gopls = {},
 | 
				
			||||||
      jsonls = {},
 | 
					      jsonls = {},
 | 
				
			||||||
 | 
					      eslint = {
 | 
				
			||||||
 | 
					        vim.api.nvim_create_autocmd("BufWritePre", {
 | 
				
			||||||
 | 
					          callback = function()
 | 
				
			||||||
 | 
					            vim.lsp.buf.format()
 | 
				
			||||||
 | 
					          end,
 | 
				
			||||||
 | 
					        }),
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
      lua_ls = {
 | 
					      lua_ls = {
 | 
				
			||||||
        -- cmd = { ... },
 | 
					        -- cmd = { ... },
 | 
				
			||||||
        -- filetypes = { ... },
 | 
					        -- filetypes = { ... },
 | 
				
			||||||
@@ -183,11 +231,11 @@ return {
 | 
				
			|||||||
        },
 | 
					        },
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    local ensure_installed = vim.tbl_keys(servers or {})
 | 
					    local ensure_installed = vim.tbl_keys(servers or {})
 | 
				
			||||||
    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