mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-23 20:11:44 +00:00
simple PHP parser and lsp config
This commit is contained in:
parent
d1503995c8
commit
d117ed8ecf
@ -18,7 +18,7 @@ return {
|
||||
-- Disable "format_on_save lsp_fallback" for languages that don't
|
||||
-- have a well standardized coding style. You can add additional
|
||||
-- languages here or re-enable it for the disabled ones.
|
||||
local disable_filetypes = { c = true, cpp = true }
|
||||
local disable_filetypes = { c = true, cpp = true, php = true }
|
||||
return {
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
|
||||
|
@ -166,6 +166,7 @@ return {
|
||||
pyright = {},
|
||||
svelte = {},
|
||||
gopls = {},
|
||||
intelephense = {},
|
||||
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
||||
--
|
||||
-- Some languages (like typescript) have entire language plugins that can be useful:
|
||||
|
@ -23,6 +23,7 @@ return {
|
||||
'markdown',
|
||||
'gitcommit',
|
||||
'gitignore',
|
||||
'php',
|
||||
},
|
||||
-- Autoinstall languages that are not installed
|
||||
auto_install = true,
|
||||
|
Loading…
Reference in New Issue
Block a user