Adding note taking to neovim

This commit is contained in:
Dan Chadwick
2024-11-12 08:08:18 -05:00
parent a088a7565a
commit f5eaec8a5d
8 changed files with 47 additions and 2 deletions

View File

@@ -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 }