Compare commits
2 Commits
2313226c67
...
8d370e3248
Author | SHA1 | Date |
---|---|---|
Victor Timofei | 8d370e3248 | |
Victor Timofei | 538c084658 |
|
@ -1,6 +1,7 @@
|
|||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
local remap = require('vtimofei.lsp.remap')
|
||||
local lsp_conf = require('lspconfig')
|
||||
local opt = vim.opt
|
||||
|
||||
lsp_conf.gopls.setup{
|
||||
capabilities = capabilities,
|
||||
|
@ -13,5 +14,7 @@ lsp_conf.gopls.setup{
|
|||
remap.diagnostics_prev()
|
||||
remap.rename()
|
||||
remap.code_action()
|
||||
opt.autoindent = true
|
||||
opt.expandtab = false
|
||||
end
|
||||
}
|
||||
|
|
|
@ -4,3 +4,4 @@ require('vtimofei.lsp.lua_ls')
|
|||
require('vtimofei.lsp.tsserver')
|
||||
require('vtimofei.lsp.clangd')
|
||||
require('vtimofei.lsp.pylsp')
|
||||
require('vtimofei.lsp.robotframework_ls')
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
local remap = require('vtimofei.lsp.remap')
|
||||
local lsp_conf = require('lspconfig')
|
||||
local opt = vim.opt
|
||||
|
||||
lsp_conf.robotframework_ls.setup{
|
||||
capabilities = capabilities,
|
||||
on_attach = function()
|
||||
remap.hover()
|
||||
remap.definition()
|
||||
remap.type_definition()
|
||||
remap.implementation()
|
||||
remap.diagnostics_next()
|
||||
remap.diagnostics_prev()
|
||||
remap.rename()
|
||||
remap.code_action()
|
||||
opt.autoindent = true
|
||||
opt.expandtab = false
|
||||
end
|
||||
}
|
Loading…
Reference in New Issue