vim again
This commit is contained in:
parent
ba6f5ed81b
commit
d1394482e4
8 changed files with 140 additions and 57 deletions
|
|
@ -1,6 +1,6 @@
|
|||
if system('id -u') > 500
|
||||
let g:coc_global_extensions = [ 'coc-markdownlint', 'coc-diagnostic', 'coc-angular', 'coc-css', 'coc-docker', 'coc-flutter-tools', 'coc-git', 'coc-homeassistant', 'coc-html', 'coc-json', 'coc-marketplace', 'coc-prettier', 'coc-pyright', 'coc-rls', 'coc-rust-analyzer', 'coc-scssmodules', 'coc-sh', 'coc-snippets', 'coc-stylelintplus', 'coc-swagger', 'coc-tabnine', 'coc-eslint', 'coc-tsserver', 'coc-webpack', 'coc-yaml' ]
|
||||
endif
|
||||
" if system('id -u') > 500
|
||||
" let g:coc_global_extensions = [ 'coc-markdownlint', 'coc-diagnostic', 'coc-angular', 'coc-css', 'coc-docker', 'coc-flutter-tools', 'coc-git', 'coc-homeassistant', 'coc-html', 'coc-json', 'coc-marketplace', 'coc-prettier', 'coc-pyright', 'coc-rls', 'coc-rust-analyzer', 'coc-scssmodules', 'coc-sh', 'coc-snippets', 'coc-stylelintplus', 'coc-swagger', 'coc-tabnine', 'coc-eslint', 'coc-tsserver', 'coc-webpack', 'coc-yaml' ]
|
||||
" endif
|
||||
" \coc Some servers have issues with backup files, see #649.
|
||||
set nobackup
|
||||
set nowritebackup
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@ map { 'n', '<C-k>', '<C-w>k', noremap = true, silent = true}
|
|||
map { 'n', '<C-l>', '<C-w>l', noremap = true, silent = true}
|
||||
|
||||
-- buffer binds
|
||||
map { 'n', ',q', ':bd<CR>', noremap = false, silent = true}
|
||||
map { 'n', ',b', ':Buffers<CR>', noremap = false, silent = true}
|
||||
map { 'n', '<leader>q', ':bd<CR>', noremap = false, silent = true}
|
||||
map { 'n', '<leader>b', ':Buffers<CR>', noremap = false, silent = true}
|
||||
-- tab binds
|
||||
map { 'n', '<C-t>', ':tabnew<CR>', noremap = false, silent = true}
|
||||
|
||||
|
|
@ -31,8 +31,8 @@ map { 'c', 'w!!', 'w !sudo tee > /dev/null %', noremap = false, silent = false}
|
|||
|
||||
|
||||
-- terminal
|
||||
map { 'n', '<leader>t', ':term<CR>', noremap = false, silent = true}
|
||||
map { 't', '<C-b>', '<C-\\><C-n>', noremap = true, silent = true}
|
||||
-- map { 'n', '<leader>t', ':term<CR>', noremap = false, silent = true}
|
||||
-- map { 't', '<C-b>', '<C-\\><C-n>', noremap = true, silent = true}
|
||||
|
||||
-- plugins - commentary
|
||||
map { 'n', '<leader>c', ':Commentary<CR>', noremap = false, silent = true}
|
||||
|
|
@ -42,4 +42,5 @@ map { 'n', '<leader>v', ':Vista!!<CR>', noremap = false, silent = true}
|
|||
map { 'n', '<tab>', '::NnnPicker %:p:h<CR>', noremap = true, silent = true}
|
||||
|
||||
-- plugins - terminal
|
||||
map {"n", "<leader>l", "<cmd>lua _lazygit_toggle()<CR>", {noremap = true, silent = true}}
|
||||
map {"n", "<leader>gg", "<cmd>lua _lazygit_toggle()<CR>", {noremap = true, silent = true}}
|
||||
map {"n", "<leader>gp", "<cmd>lua _pipeline_toggle()<CR>", {noremap = true, silent = true}}
|
||||
|
|
|
|||
|
|
@ -14,9 +14,12 @@ function _lazygit_toggle()
|
|||
lazygit:toggle()
|
||||
end
|
||||
|
||||
-- local pipeline = Terminal:new {
|
||||
-- cmd = "glab ci view",
|
||||
-- hidden = true,
|
||||
-- direction = 'float'
|
||||
-- }
|
||||
local pipeline = Terminal:new {
|
||||
cmd = "glab ci view",
|
||||
hidden = true,
|
||||
direction = 'float'
|
||||
}
|
||||
|
||||
function _pipeline_toggle()
|
||||
pipeline:toggle()
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
-- mapleader
|
||||
vim.g.mapleader = ' '
|
||||
|
||||
require('utils')
|
||||
require('keybindings')
|
||||
require('filetypes')
|
||||
|
|
@ -8,8 +11,9 @@ require('plugin.nnn')
|
|||
require('plugin.rainbow')
|
||||
require('plugin.terminal')
|
||||
|
||||
|
||||
-- plugins - coc
|
||||
-- vim.cmd 'source ~/.config/nvim/coc.vim' -- too lazy to convert all the shit to lua
|
||||
vim.cmd 'source ~/.config/nvim/coc.vim' -- too lazy to convert all the shit to lua
|
||||
-- terminal
|
||||
vim.cmd 'source ~/.config/nvim/terminal.vim' -- too lazy to convert all the shit to lua
|
||||
|
||||
|
|
@ -19,6 +23,7 @@ vim.cmd ':colorscheme gruvbox'
|
|||
opt.termguicolors = true -- 24bit color
|
||||
opt.background = 'dark' -- dark gruvbox
|
||||
|
||||
|
||||
-- general settings
|
||||
vim.cmd [[
|
||||
filetype plugin on
|
||||
|
|
@ -43,5 +48,5 @@ opt.softtabstop = 2
|
|||
-- buffers don't get unloaded when hidden
|
||||
opt.hidden = true
|
||||
-- low updatetime so it isnt as slow
|
||||
opt.updatetime = 200
|
||||
opt.updatetime = 100
|
||||
require('plugin.lualine')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue