Compare commits

..

2 Commits

Author SHA1 Message Date
0683408c18 Added the new marksman
Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
2023-09-04 11:07:35 +02:00
Marcin Woźniak
d89bb02c26 Added the CoPilot into a init.vim
Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
2023-09-04 11:03:00 +02:00

View File

@ -204,7 +204,7 @@ local handlers = {
-- Use a loop to conveniently call 'setup' on multiple servers and
-- map buffer local keybindings when the language server attaches
local servers = { 'pyright', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph', 'terraformls', 'tflint' }
local servers = { 'pyright', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph', 'terraformls', 'tflint', 'marksman' }
for _, lsp in pairs(servers) do
require('lspconfig')[lsp].setup {
on_attach = on_attach,
@ -334,7 +334,6 @@ cmp.setup.cmdline('/', {
require("nvim-tree").setup({
})
require'treesitter-context'.setup{}
EOF
@ -342,6 +341,10 @@ EOF
set updatetime=250
autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})
" CoPilot
imap <silent><script><expr> <F1> copilot#Accept("\<CR>")
let g:copilot_no_tab_map = v:true
" Neoformat
let g:neoformat_try_formatprg = 1
let g:neoformat_basic_format_trim = 1