nvim lsp: 設定好常用的程式語言
This commit is contained in:
@@ -13,11 +13,15 @@ end
|
||||
-- <https://wiki.archlinux.org/title/Language_Server_Protocol>
|
||||
local servers = {
|
||||
"phpactor", -- PHP
|
||||
"sqls", -- SQL
|
||||
"pyright", -- Python
|
||||
"gopls", -- Go
|
||||
"html", -- HTML
|
||||
"cssls", -- CSS
|
||||
"volar", -- Vue3
|
||||
-- "ts_ls", -- TypeScript,目前暫時不需要,先註解掉
|
||||
"marksman", -- Markdown
|
||||
"yamlls", -- YAML
|
||||
}
|
||||
|
||||
-- 載入所有的對應的 LSP server 設定
|
||||
|
||||
@@ -6,11 +6,15 @@ require("mason-lspconfig").setup {
|
||||
ensure_installed = {
|
||||
-- "lua_ls", "rust_analyzer" -- 官方範例
|
||||
"phpactor",
|
||||
"sqls",
|
||||
"pyright",
|
||||
"gopls",
|
||||
"html",
|
||||
"cssls",
|
||||
"tsserver",
|
||||
"volar",
|
||||
-- "ts_ls",
|
||||
"marksman",
|
||||
"yamlls",
|
||||
},
|
||||
|
||||
-- Whether servers that are set up (via lspconfig) should be automatically installed if they're not already installed.
|
||||
|
||||
Reference in New Issue
Block a user