diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-12-18 18:44:30 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-12-18 18:44:30 +0100 |
| commit | 605048dda6dc0ab6596bf9b76a6212cedf80a497 (patch) | |
| tree | bec0e13e209655d14cef112c21a416af1c3a1ff2 /after/plugin/lsp.lua | |
| parent | eedea2b9c040c41305c0593a22fae7c88a473465 (diff) | |
| download | nvim-conf-605048dda6dc0ab6596bf9b76a6212cedf80a497.tar.gz nvim-conf-605048dda6dc0ab6596bf9b76a6212cedf80a497.zip | |
feat several improvements
Diffstat (limited to 'after/plugin/lsp.lua')
| -rw-r--r-- | after/plugin/lsp.lua | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 06bcc05..e2f5652 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -1,6 +1,5 @@ local telescope_mapper = require("alpha.telescope.mappings") local lspconfig = require("lspconfig") -local configs = require("lspconfig.configs") local lsp_formatting = function(bufnr, allowed_clientes) vim.lsp.buf.format({ @@ -55,8 +54,6 @@ vim.keymap.set("n", "<leader>vf", function() return vim.lsp.buf.format({ async = true }) end, {}) -vim.keymap.set("n", "<leader>vn", vim.diagnostic.goto_next, {}) -vim.keymap.set("n", "<leader>vp", vim.diagnostic.goto_prev, {}) local function on_attach(client, bufnr) local filetype = vim.api.nvim_buf_get_option(0, "filetype") @@ -77,16 +74,6 @@ local function on_attach(client, bufnr) filetype_attach[filetype](client, bufnr) end -vim.diagnostic.config({ - virtual_text = false, -}) - -local signs = { Error = "", Warn = "", Hint = "", Info = "" } -for type, icon in pairs(signs) do - local hl = "DiagnosticSign" .. type - vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" }) -end - -- Actual configs local lsp_flags = { debounce_text_changes = 150, @@ -108,7 +95,7 @@ lspconfig.dockerls.setup({ flags = lsp_flags, }) -lspconfig["phpactor"].setup({ +lspconfig.phpactor.setup({ on_attach = on_attach, flags = lsp_flags, filetypes = { "php", "cucumber" }, @@ -173,21 +160,3 @@ lspconfig["sumneko_lua"].setup({ }, }, }) - --- configs.blade = { --- default_config = { --- cmd = { "laravel-dev-tools", "lsp" }, --- filetypes = { "blade" }, --- root_dir = function(fname) --- return lspconfig.util.find_git_ancestor(fname) --- end, --- settings = {}, --- }, --- } --- -- Set it up --- lspconfig.blade.setup({ --- -- Capabilities is specific to my setup. --- capabilities = capabilities, --- on_attach = on_attach, --- flags = lsp_flags, --- }) |