remove the auto attach thing. not needed
This commit is contained in:
@@ -48,7 +48,8 @@ vim.cmd [=[
|
|||||||
nnoremap ,rl :checktime<CR>
|
nnoremap ,rl :checktime<CR>
|
||||||
nnoremap ,m :wa<CR>:make<CR>
|
nnoremap ,m :wa<CR>:make<CR>
|
||||||
nnoremap <silent> <Esc> :noh<CR><Esc>
|
nnoremap <silent> <Esc> :noh<CR><Esc>
|
||||||
inoremap <c-k> <c-x>
|
inoremap <c-o> <c-x><c-o>
|
||||||
|
inoremap <c-f> <c-x><c-f>
|
||||||
|
|
||||||
nnoremap ,cD :call setqflist(filter(getqflist(), 'v:val != getqflist()[getqflist({"idx": 0}).idx - 1]'))<CR>
|
nnoremap ,cD :call setqflist(filter(getqflist(), 'v:val != getqflist()[getqflist({"idx": 0}).idx - 1]'))<CR>
|
||||||
|
|
||||||
@@ -594,22 +595,9 @@ require'lazy'.setup{ --{{{1
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
require'mason-lspconfig'.setup()
|
require'mason-lspconfig'.setup()
|
||||||
|
vim.opt.completeopt = { 'menu', 'popup', 'preview', 'fuzzy' }
|
||||||
|
|
||||||
|
|
||||||
vim.opt.completeopt = {
|
|
||||||
'menu',
|
|
||||||
'popup',
|
|
||||||
'preview',
|
|
||||||
'fuzzy'
|
|
||||||
}
|
|
||||||
vim.opt.complete:prepend('o')
|
|
||||||
vim.api.nvim_create_autocmd('LspAttach', {
|
|
||||||
callback = function(ev)
|
|
||||||
local client = assert(vim.lsp.get_client_by_id(ev.data.client_id))
|
|
||||||
if client:supports_method('textDocument/completion') then
|
|
||||||
vim.lsp.completion.enable(true, client.id, ev.buf)
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
vim.lsp.config.zls = {
|
vim.lsp.config.zls = {
|
||||||
before_init = function(_, _)
|
before_init = function(_, _)
|
||||||
vim.g.zig_fmt_autosave = false -- may not be needed anymore?
|
vim.g.zig_fmt_autosave = false -- may not be needed anymore?
|
||||||
|
|||||||
Reference in New Issue
Block a user