First day of development changes

This commit is contained in:
Chris
2025-04-14 15:20:54 +01:00
parent 01164c6d8b
commit c3574de9bc
8 changed files with 177 additions and 112 deletions

View File

@@ -1,4 +1,6 @@
-- Main LSP Configuration
require('helpers').edit_cf('pl', '/lua/plugins/lsp.lua')
return {
'neovim/nvim-lspconfig',
dependencies = {
@@ -194,6 +196,9 @@ return {
-- - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features.
-- - settings (table): Override the default settings passed when initializing the server.
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local mason_registry = require 'mason-registry'
local vue_language_server_path = mason_registry.get_package('vue-language-server'):get_install_path() .. '/node_modules/@vue/language-server'
local servers = {
-- clangd = {},
-- gopls = {},
@@ -222,6 +227,30 @@ return {
},
},
},
ts_ls = {
init_options = {
plugins = {
{
name = '@vue/typescript-plugin',
location = vue_language_server_path,
languages = { 'vue' },
},
},
},
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
},
volar = {
on_attach = function(client, bufnr)
client.server_capabilities.documentFormattingProvider = false
end,
},
phpactor = {
on_attach = function(client, bufnr)
client.server_capabilities.documentFormattingProvider = false
end,
},
}
-- Ensure the servers and tools above are installed