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 = {},
|
ansiblels = {},
|
||||||
powershell_es = {},
|
powershell_es = {},
|
||||||
gopls = {},
|
gopls = {},
|
||||||
|
templ = {},
|
||||||
clangd = {},
|
clangd = {},
|
||||||
zls = {},
|
zls = {},
|
||||||
-- hls = {},
|
-- hls = {},
|
||||||
|
@ -222,7 +223,7 @@ local function on_attach(args) -- {{{
|
||||||
)
|
)
|
||||||
|
|
||||||
if (formatting_filter(client)) then
|
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
|
end
|
||||||
|
|
||||||
if client.name == 'omnisharp' then
|
if client.name == 'omnisharp' then
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---@diagnostic disable: missing-fields
|
||||||
local M = {
|
local M = {
|
||||||
'hrsh7th/nvim-cmp',
|
'hrsh7th/nvim-cmp',
|
||||||
event = 'InsertEnter',
|
event = 'InsertEnter',
|
||||||
|
@ -37,7 +38,7 @@ function M.config()
|
||||||
-- documentation = cmp.config.window.bordered(),
|
-- documentation = cmp.config.window.bordered(),
|
||||||
},
|
},
|
||||||
mapping = cmp.mapping.preset.insert({
|
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-f>'] = cmp.mapping.scroll_docs(4),
|
||||||
['<C-Space>'] = cmp.mapping.complete({}),
|
['<C-Space>'] = cmp.mapping.complete({}),
|
||||||
['<C-e>'] = cmp.mapping.abort(),
|
['<C-e>'] = cmp.mapping.abort(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue