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')
|
||||
|
|
|
|||
|
|
@ -2,14 +2,18 @@
|
|||
{
|
||||
home.packages = with pkgs;[
|
||||
python3 # ultisnips
|
||||
#lazygit
|
||||
#nodejs
|
||||
#inputs.rnix-lsp.packages."${pkgs.system}".rnix-lsp
|
||||
#shfmt
|
||||
#shellcheck
|
||||
#vim-vint
|
||||
#nodePackages.write-good
|
||||
#ctags
|
||||
lazygit
|
||||
nodejs # coc-nvim
|
||||
yarn # coc-nvim
|
||||
inputs.rnix-lsp.packages."${pkgs.system}".rnix-lsp
|
||||
|
||||
# lsp
|
||||
shfmt
|
||||
shellcheck
|
||||
vim-vint
|
||||
glab
|
||||
nodePackages.write-good
|
||||
ctags
|
||||
];
|
||||
home.file.".config/nvim".source = ./config;
|
||||
home.file.".config/nvim".recursive = true;
|
||||
|
|
@ -33,10 +37,10 @@
|
|||
version = "1.0.0";
|
||||
src = inputs.nnn-vim;
|
||||
};
|
||||
# coc-nvim = pkgs.vimUtils.buildVimPlugin {
|
||||
# name = "coc-nvim";
|
||||
# src = inputs.coc-nvim;
|
||||
# };
|
||||
#coc-nvim = pkgs.vimUtils.buildVimPlugin {
|
||||
# name = "coc-nvim";
|
||||
# src = inputs.coc-nvim;
|
||||
#};
|
||||
#dart-vim = pkgs.vimUtils.buildVimPlugin {
|
||||
# name = "dart-vim";
|
||||
# src = inputs.dart-vim;
|
||||
|
|
@ -63,12 +67,63 @@
|
|||
fzfWrapper
|
||||
vim-devicons
|
||||
toggleterm-nvim
|
||||
# undotree
|
||||
# vim-pandoc
|
||||
# vim-pandoc-syntax
|
||||
# ultisnips
|
||||
# coc-nvim
|
||||
undotree
|
||||
vim-pandoc
|
||||
vim-pandoc-syntax
|
||||
ultisnips
|
||||
#dart-vim
|
||||
|
||||
coc-nvim
|
||||
|
||||
#telescope-coc-nvim
|
||||
#coc-yank
|
||||
coc-yaml
|
||||
#coc-wxml
|
||||
#coc-vimtex
|
||||
#coc-vimlsp
|
||||
#coc-vetur # vue
|
||||
coc-ultisnips
|
||||
coc-tsserver
|
||||
#coc-tslint-plugin
|
||||
#coc-tslint
|
||||
coc-toml
|
||||
#coc-texlab
|
||||
#coc-tailwindcss
|
||||
#coc-tabnine
|
||||
#coc-svelte
|
||||
#coc-sumneko-lua
|
||||
coc-stylelint
|
||||
coc-sqlfluff
|
||||
#coc-spell-checker
|
||||
#coc-solargraph # ruby
|
||||
coc-snippets
|
||||
#coc-smartf
|
||||
coc-sh
|
||||
#coc-rust-analyzer
|
||||
coc-rls
|
||||
#coc-r-lsp
|
||||
coc-python
|
||||
#coc-pyright
|
||||
coc-prettier
|
||||
#coc-pairs
|
||||
#coc-nginx
|
||||
#coc-neco
|
||||
#coc-metals
|
||||
coc-markdownlint
|
||||
coc-lua
|
||||
#coc-lists
|
||||
coc-json
|
||||
coc-jest
|
||||
coc-java
|
||||
#coc-imselect
|
||||
coc-html
|
||||
coc-highlight
|
||||
#coc-haxe
|
||||
coc-go
|
||||
#coc-git
|
||||
#coc-fzf
|
||||
coc-flutter
|
||||
#coc-explorer
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue