vim: add templ lsp
This commit is contained in:
parent
124b5181dc
commit
8dc8f57fc6
2 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,7 @@ local server_configs = function()
|
|||
ansiblels = {},
|
||||
powershell_es = {},
|
||||
gopls = {},
|
||||
templ = {},
|
||||
clangd = {},
|
||||
zls = {},
|
||||
-- hls = {},
|
||||
|
@ -222,7 +223,7 @@ local function on_attach(args) -- {{{
|
|||
)
|
||||
|
||||
if (formatting_filter(client)) then
|
||||
vim.api.nvim_set_option_value('formatexpr', 'v:lua.vim.lsp.formatexpr(#{timeout_ms:250})', {buf= bufnr})
|
||||
vim.api.nvim_set_option_value('formatexpr', 'v:lua.vim.lsp.formatexpr(#{timeout_ms:250})', { buf = bufnr })
|
||||
end
|
||||
|
||||
if client.name == 'omnisharp' then
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
---@diagnostic disable: missing-fields
|
||||
local M = {
|
||||
'hrsh7th/nvim-cmp',
|
||||
event = 'InsertEnter',
|
||||
|
@ -37,7 +38,7 @@ function M.config()
|
|||
-- documentation = cmp.config.window.bordered(),
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
['<C-b>'] = cmp.mapping.scroll_docs( -4),
|
||||
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||
['<C-Space>'] = cmp.mapping.complete({}),
|
||||
['<C-e>'] = cmp.mapping.abort(),
|
||||
|
|
Loading…
Add table
Reference in a new issue