Nvim: sync development setup from viessmann machine
This commit is contained in:
11
.config/nvim/after/plugin/hlslens.rc.vim
Normal file
11
.config/nvim/after/plugin/hlslens.rc.vim
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
"noremap <silent> n <Cmd>execute('normal! ' . v:count1 . 'n')<CR>
|
||||||
|
" \<Cmd>lua require('hlslens').start()<CR>
|
||||||
|
"noremap <silent> N <Cmd>execute('normal! ' . v:count1 . 'N')<CR>
|
||||||
|
" \<Cmd>lua require('hlslens').start()<CR>
|
||||||
|
"noremap * *<Cmd>lua require('hlslens').start()<CR>
|
||||||
|
"noremap # #<Cmd>lua require('hlslens').start()<CR>
|
||||||
|
"noremap g* g*<Cmd>lua require('hlslens').start()<CR>
|
||||||
|
"noremap g# g#<Cmd>lua require('hlslens').start()<CR>
|
||||||
|
"
|
||||||
|
"" use : instead of <Cmd>
|
||||||
|
"nnoremap <silent> <leader>l :noh<CR>
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
lua << EOF
|
lua << EOF
|
||||||
--vim.opt.termguicolors = true
|
--vim.opt.termguicolors = true
|
||||||
vim.cmd [[highlight IndentBlanklineIndent1 guifg=#E06C75 gui=nocombine]]
|
--vim.cmd [[highlight IndentBlanklineIndent1 guifg=#E06C75 gui=nocombine]]
|
||||||
vim.cmd [[highlight IndentBlanklineIndent2 guifg=#E5C07B gui=nocombine]]
|
--vim.cmd [[highlight IndentBlanklineIndent2 guifg=#E5C07B gui=nocombine]]
|
||||||
vim.cmd [[highlight IndentBlanklineIndent3 guifg=#98C379 gui=nocombine]]
|
--vim.cmd [[highlight IndentBlanklineIndent3 guifg=#98C379 gui=nocombine]]
|
||||||
vim.cmd [[highlight IndentBlanklineIndent4 guifg=#56B6C2 gui=nocombine]]
|
--vim.cmd [[highlight IndentBlanklineIndent4 guifg=#56B6C2 gui=nocombine]]
|
||||||
vim.cmd [[highlight IndentBlanklineIndent5 guifg=#61AFEF gui=nocombine]]
|
--vim.cmd [[highlight IndentBlanklineIndent5 guifg=#61AFEF gui=nocombine]]
|
||||||
vim.cmd [[highlight IndentBlanklineIndent6 guifg=#C678DD gui=nocombine]]
|
--vim.cmd [[highlight IndentBlanklineIndent6 guifg=#C678DD gui=nocombine]]
|
||||||
|
|
||||||
--vim.opt.list = true
|
--vim.opt.list = true
|
||||||
--vim.opt.listchars:append("space:⋅")
|
--vim.opt.listchars:append("space:⋅")
|
||||||
|
|||||||
@@ -5,69 +5,87 @@ endif
|
|||||||
" Completion configuration for native neovim + nvim-lspconfig
|
" Completion configuration for native neovim + nvim-lspconfig
|
||||||
lua << EOF
|
lua << EOF
|
||||||
local nvim_lsp = require'lspconfig'
|
local nvim_lsp = require'lspconfig'
|
||||||
|
local coq = require'coq'
|
||||||
|
local cmp = require'cmp_nvim_lsp'
|
||||||
|
local signature = require'lsp_signature'
|
||||||
|
local illuminate = require'illuminate'
|
||||||
|
|
||||||
|
-- Mappings.
|
||||||
|
local opts = { noremap=true, silent=true }
|
||||||
|
vim.api.nvim_set_keymap('n', '<space>e', '<cmd>lua vim.diagnostic.open_float()<CR>', opts)
|
||||||
|
vim.api.nvim_set_keymap('n', '[d', '<cmd>lua vim.diagnostic.goto_prev()<CR>', opts)
|
||||||
|
vim.api.nvim_set_keymap('n', ']d', '<cmd>lua vim.diagnostic.goto_next()<CR>', opts)
|
||||||
|
vim.api.nvim_set_keymap('n', '<space>E', '<cmd>lua vim.diagnostic.set_loclist()<CR>', opts)
|
||||||
|
vim.api.nvim_set_keymap("n", "<space>q", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts)
|
||||||
|
|
||||||
-- Use an on_attach function to only map the following keys
|
-- Use an on_attach function to only map the following keys
|
||||||
-- after the language server attaches to the current buffer
|
-- after the language server attaches to the current buffer
|
||||||
local on_attach = function(client, bufnr)
|
local on_attach = function(client, bufnr)
|
||||||
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
|
|
||||||
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
|
|
||||||
|
|
||||||
--Enable completion triggered by <c-x><c-o>
|
--Enable completion triggered by <c-x><c-o>
|
||||||
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
|
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
|
||||||
|
|
||||||
-- Mappings.
|
---- See `:help vim.lsp.*` for documentation on any of the below functions
|
||||||
local opts = { noremap=true, silent=true }
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>', opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
|
||||||
|
|
||||||
-- See `:help vim.lsp.*` for documentation on any of the below functions
|
signature.on_attach({
|
||||||
buf_set_keymap('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>', opts)
|
|
||||||
buf_set_keymap('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
|
|
||||||
buf_set_keymap('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
|
|
||||||
buf_set_keymap('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
|
|
||||||
buf_set_keymap('n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
|
|
||||||
buf_set_keymap('n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
|
|
||||||
buf_set_keymap('n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
|
|
||||||
buf_set_keymap('n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
|
|
||||||
buf_set_keymap('n', '<space>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
|
|
||||||
buf_set_keymap('n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
|
|
||||||
buf_set_keymap('n', '<space>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
|
|
||||||
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
|
|
||||||
buf_set_keymap('n', '<space>e', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts)
|
|
||||||
buf_set_keymap('n', '[d', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts)
|
|
||||||
buf_set_keymap('n', ']d', '<cmd>lua vim.lsp.diagnostic.goto_next()<CR>', opts)
|
|
||||||
buf_set_keymap('n', '<space>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
|
|
||||||
buf_set_keymap("n", "<space>f", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts)
|
|
||||||
|
|
||||||
require('lsp_signature').on_attach({
|
|
||||||
bind = true,
|
bind = true,
|
||||||
handler_opts = {
|
handler_opts = {
|
||||||
border = "single",
|
border = "single",
|
||||||
}
|
}
|
||||||
}, bufnr)
|
}, bufnr)
|
||||||
|
illuminate.on_attach(client)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local signs = {
|
||||||
|
{ name = "DiagnosticSignError", text = "" },
|
||||||
|
{ name = "DiagnosticSignWarn", text = "" },
|
||||||
|
{ name = "DiagnosticSignHint", text = "" },
|
||||||
|
{ name = "DiagnosticSignInfo", text = "" },
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, sign in ipairs(signs) do
|
||||||
|
vim.fn.sign_define(sign.name, { texthl = sign.name, text = sign.text, numhl = "" })
|
||||||
|
end
|
||||||
|
|
||||||
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
||||||
vim.lsp.diagnostic.on_publish_diagnostics, {
|
vim.lsp.diagnostic.on_publish_diagnostics, {
|
||||||
signs = {
|
signs = {
|
||||||
severity_limit = 'Warning',
|
active = signs,
|
||||||
|
--severity_limit = 'info',
|
||||||
},
|
},
|
||||||
|
severity_sort = true,
|
||||||
underline = false,
|
underline = false,
|
||||||
update_in_insert = false,
|
update_in_insert = false,
|
||||||
virtual_text = {
|
--virtual_text = {
|
||||||
spacing = 40,
|
-- spacing = 40,
|
||||||
severity_limit = 'Warning',
|
-- severity_limit = 'Warning',
|
||||||
},
|
--},
|
||||||
|
virtual_text = false,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
nvim_lsp.groovyls.setup {
|
nvim_lsp.groovyls.setup (
|
||||||
|
coq.lsp_ensure_capabilities({
|
||||||
cmd = { "java", "-jar", "/home/kmcr/tools/groovy-language-server/build/libs/groovy-language-server-all.jar" },
|
cmd = { "java", "-jar", "/home/kmcr/tools/groovy-language-server/build/libs/groovy-language-server-all.jar" },
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
on_publish_diagnostics = diagnostic_handler,
|
on_publish_diagnostics = diagnostic_handler,
|
||||||
capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
capabilities = cmp.update_capabilities(vim.lsp.protocol.make_client_capabilities()),
|
||||||
}
|
})
|
||||||
|
)
|
||||||
|
|
||||||
nvim_lsp.ccls.setup {
|
nvim_lsp.ccls.setup(
|
||||||
|
coq.lsp_ensure_capabilities({
|
||||||
init_options = {
|
init_options = {
|
||||||
compilationDatabaseDirectory = ".";
|
compilationDatabaseDirectory = ".";
|
||||||
index = {
|
index = {
|
||||||
@@ -79,13 +97,15 @@ nvim_lsp.ccls.setup {
|
|||||||
},
|
},
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
on_publish_diagnostics = diagnostic_handler,
|
on_publish_diagnostics = diagnostic_handler,
|
||||||
capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()),
|
capabilities = cmp.update_capabilities(vim.lsp.protocol.make_client_capabilities()),
|
||||||
flags = {
|
flags = {
|
||||||
debounce_text_changes = 150,
|
debounce_text_changes = 150,
|
||||||
}
|
}}
|
||||||
}
|
)
|
||||||
|
)
|
||||||
|
|
||||||
nvim_lsp.pylsp.setup {
|
nvim_lsp.pylsp.setup(
|
||||||
|
coq.lsp_ensure_capabilities({
|
||||||
settings = {
|
settings = {
|
||||||
pylint = {
|
pylint = {
|
||||||
enabled = false
|
enabled = false
|
||||||
@@ -99,20 +119,24 @@ nvim_lsp.pylsp.setup {
|
|||||||
},
|
},
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
on_publish_diagnostics = diagnostic_handler,
|
on_publish_diagnostics = diagnostic_handler,
|
||||||
capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
capabilities = cmp.update_capabilities(vim.lsp.protocol.make_client_capabilities()),
|
||||||
}
|
})
|
||||||
|
)
|
||||||
|
|
||||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||||
-- map buffer local keybindings when the language server attaches
|
-- map buffer local keybindings when the language server attaches
|
||||||
local servers = { "cmake", "rust_analyzer" }
|
local servers = { "cmake", "rust_analyzer" }
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
nvim_lsp[lsp].setup {
|
nvim_lsp[lsp].setup(
|
||||||
|
coq.lsp_ensure_capabilities({
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
on_publish_diagnostics = diagnostic_handler,
|
on_publish_diagnostics = diagnostic_handler,
|
||||||
capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()),
|
capabilities = cmp.update_capabilities(vim.lsp.protocol.make_client_capabilities()),
|
||||||
flags = {
|
flags = {
|
||||||
debounce_text_changes = 150,
|
debounce_text_changes = 150,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
end
|
end
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
13
.config/nvim/after/plugin/neoscroll.rc.lua
Normal file
13
.config/nvim/after/plugin/neoscroll.rc.lua
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
-- require('neoscroll').setup({
|
||||||
|
-- -- All these keys will be mapped to their corresponding default scrolling animation
|
||||||
|
-- mappings = {'<C-u>', '<C-d>', '<C-b>', '<C-f>',
|
||||||
|
-- '<C-y>', '<C-e>', 'zt', 'zz', 'zb'},
|
||||||
|
-- hide_cursor = true, -- Hide cursor while scrolling
|
||||||
|
-- stop_eof = true, -- Stop at <EOF> when scrolling downwards
|
||||||
|
-- use_local_scrolloff = false, -- Use the local scope of scrolloff instead of the global scope
|
||||||
|
-- respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file
|
||||||
|
-- cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further
|
||||||
|
-- easing_function = nil, -- Default easing function
|
||||||
|
-- pre_hook = nil, -- Function to run before the scrolling animation starts
|
||||||
|
-- post_hook = nil, -- Function to run after the scrolling animation ends
|
||||||
|
-- })
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
" Tree-sitter configuration
|
" Tree-sitter configuration
|
||||||
lua <<EOF
|
lua <<EOF
|
||||||
require'nvim-treesitter.configs'.setup {
|
|
||||||
|
ts = require'nvim-treesitter.configs'
|
||||||
|
|
||||||
|
ts.setup {
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
additional_vim_regex_highlighting = true,
|
||||||
indentation = {
|
|
||||||
enable = true,
|
|
||||||
},
|
},
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"bash",
|
"bash",
|
||||||
@@ -15,9 +16,41 @@ require'nvim-treesitter.configs'.setup {
|
|||||||
"fish",
|
"fish",
|
||||||
"lua",
|
"lua",
|
||||||
"rust",
|
"rust",
|
||||||
}
|
},
|
||||||
|
-- disabled, since it mostly shifts to four characters
|
||||||
|
--indent = {
|
||||||
|
-- enable = true,
|
||||||
|
--},
|
||||||
|
incremental_selection = {
|
||||||
|
enable = true,
|
||||||
|
keymaps = {
|
||||||
|
init_selection = "tis",
|
||||||
|
node_incremental = "ti",
|
||||||
|
scope_incremental = "ts",
|
||||||
|
node_decremental = "td",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
rainbow = {
|
||||||
|
enable = true,
|
||||||
|
-- disable = { "jsx", "cpp" }, list of languages you want to disable the plugin for
|
||||||
|
extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
|
||||||
|
max_file_lines = nil, -- Do not enable for files with more than n lines, int
|
||||||
|
-- colors = {}, -- table of hex strings
|
||||||
|
-- termcolors = {} -- table of colour name strings
|
||||||
|
},
|
||||||
|
textobjects = {
|
||||||
|
swap = {
|
||||||
|
enable = true,
|
||||||
|
swap_next = {
|
||||||
|
["tan"] = "@parameter.inner",
|
||||||
|
},
|
||||||
|
swap_previous = {
|
||||||
|
["tap"] = "@parameter.inner",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
vim.opt.foldmethod = "expr"
|
--vim.opt.foldmethod = "expr"
|
||||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
--vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
" Set completeopt to have a better completion experience
|
" Set completeopt to have a better completion experience
|
||||||
set completeopt=menuone,noinsert,noselect
|
"set completeopt=menuone,noinsert,noselect
|
||||||
let g:completion_enable_snippet = 'UltiSnips'
|
let g:completion_enable_snippet = 'UltiSnips'
|
||||||
iunmap <Tab>
|
iunmap <Tab>
|
||||||
imap <c-s> <C-R>=UltiSnips#ExpandSnippet()<CR>
|
"map <c-s> <C-R>=UltiSnips#ExpandSnippet()<CR>
|
||||||
"let g:UltiSnipsExpandTrigger="<c-s>"
|
"let g:UltiSnipsExpandTrigger="<c-s>"
|
||||||
let g:UltiSnipsJumpForwardTrigger="<leader>n"
|
let g:UltiSnipsJumpForwardTrigger="<c-n>"
|
||||||
let g:UltiSnipsJumpBackwardTrigger="<leader>p"
|
let g:UltiSnipsJumpBackwardTrigger="<c-p>"
|
||||||
|
|||||||
7
.config/nvim/after/plugin/vim-test.rc.vim
Normal file
7
.config/nvim/after/plugin/vim-test.rc.vim
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
nmap <silent> <leader>tn :TestNearest<CR>
|
||||||
|
nmap <silent> <leader>tf :TestFile<CR>
|
||||||
|
nmap <silent> <leader>ts :TestSuite<CR>
|
||||||
|
nmap <silent> <leader>tl :TestLast<CR>
|
||||||
|
nmap <silent> <leader>tv :TestVisit<CR>
|
||||||
|
|
||||||
|
let test#strategy = "floaterm"
|
||||||
0
.config/nvim/after/plugin/virt-column.rc.vim
Normal file
0
.config/nvim/after/plugin/virt-column.rc.vim
Normal file
@@ -14,15 +14,26 @@ call plug#begin('~/.config/nvim/plugins')
|
|||||||
" Code development helpers {{{
|
" Code development helpers {{{
|
||||||
Plug 'neovim/nvim-lspconfig'
|
Plug 'neovim/nvim-lspconfig'
|
||||||
Plug 'ray-x/lsp_signature.nvim'
|
Plug 'ray-x/lsp_signature.nvim'
|
||||||
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
|
Plug 'RRethy/vim-illuminate'
|
||||||
|
|
||||||
|
" main one
|
||||||
|
Plug 'ms-jpq/coq_nvim', {'branch': 'coq'}
|
||||||
|
" 9000+ Snippets
|
||||||
|
Plug 'ms-jpq/coq.artifacts', {'branch': 'artifacts'}
|
||||||
|
Plug 'ms-jpq/coq.thirdparty', {'branch': '3p'}
|
||||||
|
|
||||||
Plug 'wellle/context.vim'
|
Plug 'wellle/context.vim'
|
||||||
Plug 'dbeniamine/cheat.sh-vim'
|
"Plug 'dbeniamine/cheat.sh-vim'
|
||||||
Plug 'puremourning/vimspector'
|
Plug 'puremourning/vimspector'
|
||||||
Plug 'derekwyatt/vim-fswitch'
|
"Plug 'vim-test/vim-test'
|
||||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
|
||||||
Plug 'vim-test/vim-test'
|
|
||||||
Plug 'lukas-reineke/indent-blankline.nvim'
|
Plug 'lukas-reineke/indent-blankline.nvim'
|
||||||
Plug 'liuchengxu/vista.vim'
|
Plug 'liuchengxu/vista.vim'
|
||||||
|
|
||||||
|
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||||
|
Plug 'nvim-treesitter/playground'
|
||||||
|
Plug 'p00f/nvim-ts-rainbow'
|
||||||
|
Plug 'nvim-treesitter/nvim-treesitter-textobjects'
|
||||||
|
Plug 'cdelledonne/vim-cmake'
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Completion {{{
|
" Completion {{{
|
||||||
@@ -32,11 +43,14 @@ Plug 'hrsh7th/cmp-buffer'
|
|||||||
Plug 'hrsh7th/cmp-path'
|
Plug 'hrsh7th/cmp-path'
|
||||||
Plug 'hrsh7th/cmp-cmdline'
|
Plug 'hrsh7th/cmp-cmdline'
|
||||||
Plug 'hrsh7th/cmp-calc'
|
Plug 'hrsh7th/cmp-calc'
|
||||||
|
Plug 'joshzcold/cmp-jenkinsfile'
|
||||||
Plug 'petertriho/cmp-git'
|
Plug 'petertriho/cmp-git'
|
||||||
|
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
|
||||||
Plug 'quangnguyen30192/cmp-nvim-ultisnips'
|
Plug 'quangnguyen30192/cmp-nvim-ultisnips'
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Files switch, jump and grep-like tools {{{
|
" Files switch, jump and grep-like tools {{{
|
||||||
|
Plug 'derekwyatt/vim-fswitch'
|
||||||
Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' }
|
Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
Plug 'junegunn/fzf' | Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf' | Plug 'junegunn/fzf.vim'
|
||||||
Plug 'nvim-lua/popup.nvim'
|
Plug 'nvim-lua/popup.nvim'
|
||||||
@@ -45,25 +59,24 @@ Plug 'nvim-lua/plenary.nvim'
|
|||||||
"Plug 'fhill2/telescope-ultisnips.nvim'
|
"Plug 'fhill2/telescope-ultisnips.nvim'
|
||||||
Plug 'inside/vim-search-pulse'
|
Plug 'inside/vim-search-pulse'
|
||||||
Plug 'wellle/targets.vim'
|
Plug 'wellle/targets.vim'
|
||||||
Plug 'voldikss/vim-floaterm'
|
"Plug 'voldikss/vim-floaterm'
|
||||||
Plug 'kevinhwang91/nvim-hlslens'
|
"Plug 'kevinhwang91/nvim-hlslens'
|
||||||
Plug 'camspiers/lens.vim'
|
"Plug 'camspiers/lens.vim'
|
||||||
|
"Plug 'karb94/neoscroll.nvim'
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Git integration {{{
|
" Git integration {{{
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
Plug 'mhinz/vim-signify' " Mark edited lines - faster gitgutter
|
"Plug 'mhinz/vim-signify' " Mark edited lines - faster gitgutter
|
||||||
Plug 'APZelos/blamer.nvim'
|
Plug 'APZelos/blamer.nvim'
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Support for random filetypes {{{
|
" Support for random filetypes {{{
|
||||||
"Plug 'masukomi/vim-markdown-folding'
|
|
||||||
"Plug 'weirongxu/plantuml-previewer.vim' |
|
"Plug 'weirongxu/plantuml-previewer.vim' |
|
||||||
"Plug 'plasticboy/vim-markdown'
|
|
||||||
Plug 'kergoth/vim-bitbake' " Bitbake templates and syntax
|
Plug 'kergoth/vim-bitbake' " Bitbake templates and syntax
|
||||||
Plug 'pboettch/vim-cmake-syntax'
|
|
||||||
Plug 'aklt/plantuml-syntax'
|
Plug 'aklt/plantuml-syntax'
|
||||||
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
|
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
|
||||||
|
"Plug 'vim-pandoc/vim-pandoc'
|
||||||
Plug 'chrisbra/csv.vim'
|
Plug 'chrisbra/csv.vim'
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
@@ -71,9 +84,9 @@ Plug 'chrisbra/csv.vim'
|
|||||||
"Plug 'MortenStabenau/matlab-vim'
|
"Plug 'MortenStabenau/matlab-vim'
|
||||||
Plug 'junegunn/goyo.vim'
|
Plug 'junegunn/goyo.vim'
|
||||||
Plug 'lukas-reineke/virt-column.nvim'
|
Plug 'lukas-reineke/virt-column.nvim'
|
||||||
Plug 'jez/vim-superman' "vman application
|
"Plug 'jez/vim-superman' "vman application
|
||||||
Plug 'glacambre/firenvim'
|
Plug 'glacambre/firenvim'
|
||||||
Plug 'JMcKiern/vim-shoot'
|
"Plug 'JMcKiern/vim-shoot'
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Note taking {{{
|
" Note taking {{{
|
||||||
@@ -87,11 +100,14 @@ Plug 'jaredgorski/spacecamp'
|
|||||||
Plug 'lifepillar/vim-gruvbox8'
|
Plug 'lifepillar/vim-gruvbox8'
|
||||||
Plug 'dylanaraps/wal'
|
Plug 'dylanaraps/wal'
|
||||||
Plug 'vim-airline/vim-airline' | Plug 'vim-airline/vim-airline-themes'
|
Plug 'vim-airline/vim-airline' | Plug 'vim-airline/vim-airline-themes'
|
||||||
|
Plug 'tanvirtin/monokai.nvim'
|
||||||
|
Plug 'marko-cerovac/material.nvim'
|
||||||
" }}}
|
" }}}
|
||||||
"
|
"
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
set termguicolors
|
set termguicolors
|
||||||
|
set shell=bash
|
||||||
|
|
||||||
if plug_install
|
if plug_install
|
||||||
PlugInstall --sync
|
PlugInstall --sync
|
||||||
@@ -111,7 +127,8 @@ set colorcolumn=80
|
|||||||
|
|
||||||
set background=dark
|
set background=dark
|
||||||
"colorscheme wal
|
"colorscheme wal
|
||||||
colorscheme gruvbox8
|
let g:material_style = "deep ocean"
|
||||||
|
colorscheme material
|
||||||
highlight MatchParen cterm=underline ctermbg=black ctermfg=NONE
|
highlight MatchParen cterm=underline ctermbg=black ctermfg=NONE
|
||||||
highlight VirtColumn ctermfg=DarkGrey ctermbg=NONE
|
highlight VirtColumn ctermfg=DarkGrey ctermbg=NONE
|
||||||
set listchars=tab:▸\ ,trail:¬
|
set listchars=tab:▸\ ,trail:¬
|
||||||
@@ -119,9 +136,10 @@ set list
|
|||||||
hi clear SpellBad
|
hi clear SpellBad
|
||||||
hi SpellBad cterm=underline
|
hi SpellBad cterm=underline
|
||||||
|
|
||||||
set tabstop=4
|
set tabstop=2
|
||||||
set shiftwidth=4
|
set shiftwidth=2
|
||||||
set softtabstop=4
|
set softtabstop=2
|
||||||
|
|
||||||
set expandtab
|
set expandtab
|
||||||
|
|
||||||
set ignorecase
|
set ignorecase
|
||||||
@@ -153,11 +171,12 @@ set undodir=~/.cache/nvim/undo/
|
|||||||
set undofile
|
set undofile
|
||||||
|
|
||||||
"let mapleader = "\\"
|
"let mapleader = "\\"
|
||||||
map <Space> <leader>
|
nmap <space> <leader>
|
||||||
|
|
||||||
inoremap jj <ESC>
|
inoremap jj <ESC>
|
||||||
inoremap jk <ESC>
|
inoremap jk <ESC>
|
||||||
inoremap :w<CR> <Esc>:w<CR>
|
inoremap :w<CR> <Esc>:w<CR>
|
||||||
|
nnoremap Q <cmd>q
|
||||||
|
|
||||||
" Reselect visual block after incrementing/decrementing
|
" Reselect visual block after incrementing/decrementing
|
||||||
vnoremap <c-a> <c-a>gv
|
vnoremap <c-a> <c-a>gv
|
||||||
|
|||||||
Reference in New Issue
Block a user