We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcaef01 commit 0ca6203Copy full SHA for 0ca6203
lsp/phoenix.lua
@@ -0,0 +1 @@
1
+return require('phoenix').lsp()
lua/phoenix/init.lua
@@ -799,6 +799,23 @@ function server.create()
799
end
800
801
return {
802
+ lsp = function()
803
+ return {
804
+ cmd = server.create(),
805
+ filetypes = Config.filetypes,
806
+ root_dir = function(bufnr, on_dir)
807
+ if
808
+ vim.bo[bufnr].modifiable
809
+ and not vim.list_contains({ 'terminal', 'nofile' }, vim.bo[bufnr].buftype)
810
+ then
811
+ on_dir(vim.uv.cwd())
812
+ end
813
+ end,
814
+ reuse_client = function()
815
+ return true
816
817
+ }
818
819
register = function()
820
vim.api.nvim_create_autocmd('FileType', {
821
group = vim.api.nvim_create_augroup('Phoenix', { clear = true }),
0 commit comments