Adding note taking to neovim
This commit is contained in:
14
init.lua
14
init.lua
@@ -59,3 +59,17 @@ vim.keymap.set('n', '<leader>db', function()
|
||||
widgets.centered_float(widgets.scopes)
|
||||
end)
|
||||
|
||||
local lspconfig = require 'lspconfig'
|
||||
local configs = require 'lspconfig.configs'
|
||||
if not configs.drupal then
|
||||
configs.drupal = {
|
||||
default_config = {
|
||||
cmd = {'drupal-lsp'},
|
||||
filetypes = { 'php'},
|
||||
root_dir = function(fname)
|
||||
return lspconfig.util.root_pattern('composer.json', '.git')(fname)
|
||||
end
|
||||
};
|
||||
}
|
||||
end
|
||||
lspconfig.drupal.setup{autostart = true }
|
||||
|
||||
Reference in New Issue
Block a user