mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-01-28 17:09:55 -06:00
nvim - update mason-lspconfig usage
This commit is contained in:
@@ -135,6 +135,11 @@
|
||||
args (a.concat opts [...])]
|
||||
(vim.lsp.buf.execute_command {:command cmd :arguments args})))
|
||||
|
||||
|
||||
(fn setup-handlers [language_servers]
|
||||
(each [_ server-name (pairs language_servers)]
|
||||
(default-server-handler server-name)))
|
||||
|
||||
(u.nnoremap :<leader>li :LspInfo)
|
||||
|
||||
(vim.api.nvim_create_user_command :LspExecuteCommand lsp-execute-command {})
|
||||
@@ -144,4 +149,8 @@
|
||||
; (mason-lspconfig.setup)
|
||||
; (mason-lspconfig.setup_handlers [default-server-handler])))
|
||||
|
||||
{: on_attach : default-server-handler}
|
||||
{: on_attach
|
||||
: default-server-handler
|
||||
: setup-handlers
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
(mason.setup {:ui {:icons {:package_installed "✓"}}})
|
||||
(when mason-lspconf
|
||||
(mason-lspconf.setup {:ensure_installed [:lua_ls]})
|
||||
(mason-lspconf.setup_handlers [lspconfig.default-server-handler])))
|
||||
(lspconfig.setup-handlers (mason-lspconf.get_installed_servers))))
|
||||
|
||||
(setup)
|
||||
;; (mason.setup)
|
||||
|
||||
Reference in New Issue
Block a user