Skip to content

Commit

Permalink
reenable coc
Browse files Browse the repository at this point in the history
  • Loading branch information
Svenum committed Oct 24, 2024
1 parent a4c7070 commit 402b5c7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 62 deletions.
20 changes: 8 additions & 12 deletions modules/nixos/tools/nvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,13 @@ in
# Plugins
vim-plug
# CoC
#coc-sh coc-git coc-css coc-yaml
#coc-nvim coc-json coc-html coc-tslint
#coc-eslint coc-docker coc-tabnine
#coc-tsserver coc-prettier coc-highlight
#coc-markdownlint coc-spell-checker
#coc-vimlsp coc-vimtex coc-lua coc-clangd
#coc-emmet
# Mason
mason-nvim
mason-tool-installer-nvim
mason-lspconfig-nvim
coc-sh coc-git coc-css coc-yaml
coc-nvim coc-json coc-html coc-tslint
coc-eslint coc-docker coc-tabnine
coc-tsserver coc-prettier coc-highlight
coc-markdownlint coc-spell-checker
coc-vimlsp coc-vimtex coc-lua coc-clangd
coc-emmet
nvim-lspconfig
clangd_extensions-nvim
vim-nix
Expand All @@ -52,7 +48,7 @@ in
# Theme
catppuccin-nvim
# Terminal
#tmux-nvim
tmux-nvim
vim-tmux-navigator
# Git
vim-gitgutter
Expand Down
75 changes: 25 additions & 50 deletions modules/nixos/tools/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,31 @@ nnoremap <silent> <C-n> :NvimTreeToggle<CR>
" tmux-nvim "
""""""""""""""""""""""""""""""
" Plugin Config
" lua << EOF
" require("tmux").setup()
" EOF
lua << EOF
require("tmux").setup{
{
copy_sync = {
enable = true,
ignore_buffers = { empty = false },
redirect_to_clipboard = true,
register_offset = 0,
sync_clipboard = true,
sync_registers = true,
sync_registers_keymap_put = true,
sync_registers_keymap_reg = true,
sync_deletes = true,
sync_unnamed = true,
},
navigation = {
enable_default_keybindings = false,
persist_zoom = false,
},
resize = {
enable_default_keybindings = false,
}

}
EOF

""""""""""""""""""""""""""""""
" airline "
Expand All @@ -70,53 +92,6 @@ set laststatus=2
""""""""""""""""""""""""""""""
let g:rainbow_active=1


""""""""""""""""""""""""""""""
" mason "
""""""""""""""""""""""""""""""
lua << EOF
require("mason").setup()
require("mason-lspconfig").setup()
require('mason-tool-installer').setup {
ensure_installed = {
'lua-language-server',
'vim-language-server',
'stylua',
'shellcheck',
'editorconfig-checker',
'json-to-struct',
'luacheck',
'misspell',
'staticcheck',
'nil_ls',
'dokcerls',
'cssls',
'clangd',
'html',
'jinja_lsp',
'ltex',
'eslint',
'yamlls',
'ansiblels',
'bashls',
},
auto_update = true,

run_on_start = true,

start_delay = 3000,

debounce_hours = 5,

integrations = {
['mason-lspconfig'] = true,
['mason-null-ls'] = true,
['mason-nvim-dap'] = true,
},

}
EOF

""""""""""""""""""""""""""""""
" coc "
""""""""""""""""""""""""""""""
Expand Down

0 comments on commit 402b5c7

Please sign in to comment.