mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
update vim config with telescope
This commit is contained in:
parent
bb361c8aa2
commit
227a06e002
@ -90,10 +90,11 @@ if has('nvim')
|
|||||||
Plug 'kyazdani42/nvim-web-devicons'
|
Plug 'kyazdani42/nvim-web-devicons'
|
||||||
Plug 'lewis6991/gitsigns.nvim'
|
Plug 'lewis6991/gitsigns.nvim'
|
||||||
Plug 'nvim-lualine/lualine.nvim'
|
Plug 'nvim-lualine/lualine.nvim'
|
||||||
|
Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.0' }
|
||||||
Plug 'ojroques/nvim-lspfuzzy'
|
Plug 'ojroques/nvim-lspfuzzy'
|
||||||
|
|
||||||
Plug 'L3MON4D3/LuaSnip'
|
Plug 'L3MON4D3/LuaSnip'
|
||||||
Plug 'folke/trouble.nvim'
|
Plug 'amrbashir/nvim-docs-view'
|
||||||
Plug 'hrsh7th/cmp-buffer'
|
Plug 'hrsh7th/cmp-buffer'
|
||||||
Plug 'hrsh7th/cmp-nvim-lsp'
|
Plug 'hrsh7th/cmp-nvim-lsp'
|
||||||
Plug 'hrsh7th/cmp-path'
|
Plug 'hrsh7th/cmp-path'
|
||||||
@ -106,7 +107,6 @@ if has('nvim')
|
|||||||
Plug 'ray-x/lsp_signature.nvim'
|
Plug 'ray-x/lsp_signature.nvim'
|
||||||
Plug 'rmagatti/goto-preview',
|
Plug 'rmagatti/goto-preview',
|
||||||
Plug 'saadparwaiz1/cmp_luasnip'
|
Plug 'saadparwaiz1/cmp_luasnip'
|
||||||
Plug 'simrat39/symbols-outline.nvim'
|
|
||||||
Plug 'williamboman/nvim-lsp-installer'
|
Plug 'williamboman/nvim-lsp-installer'
|
||||||
|
|
||||||
Plug 'Mofiqul/dracula.nvim'
|
Plug 'Mofiqul/dracula.nvim'
|
||||||
@ -148,6 +148,7 @@ if has('nvim')
|
|||||||
source ~/.config/nvim/plugin-confs/presence.lua
|
source ~/.config/nvim/plugin-confs/presence.lua
|
||||||
source ~/.config/nvim/plugin-confs/treesitter.lua
|
source ~/.config/nvim/plugin-confs/treesitter.lua
|
||||||
source ~/.config/nvim/plugin-confs/whichkey.lua
|
source ~/.config/nvim/plugin-confs/whichkey.lua
|
||||||
|
source ~/.config/nvim/plugin-confs/telescope.lua
|
||||||
|
|
||||||
source ~/.config/nvim/plugin-confs/code_actions.lua
|
source ~/.config/nvim/plugin-confs/code_actions.lua
|
||||||
" source ~/.config/nvim/plugin-confs/copilot.lua
|
" source ~/.config/nvim/plugin-confs/copilot.lua
|
||||||
@ -160,12 +161,11 @@ if has('nvim')
|
|||||||
source ~/.config/nvim/plugin-confs/nvim-cmp.lua
|
source ~/.config/nvim/plugin-confs/nvim-cmp.lua
|
||||||
source ~/.config/nvim/plugin-confs/fidget.lua
|
source ~/.config/nvim/plugin-confs/fidget.lua
|
||||||
source ~/.config/nvim/plugin-confs/symbols-outline.lua
|
source ~/.config/nvim/plugin-confs/symbols-outline.lua
|
||||||
" source ~/.config/nvim/plugin-confs/trouble.lua
|
source ~/.config/nvim/plugin-confs/nvim-docs-view.lua
|
||||||
|
|
||||||
" nvim and vim plugins
|
" nvim and vim plugins
|
||||||
source ~/.vim/plugin-confs/floaterm.vim
|
source ~/.vim/plugin-confs/floaterm.vim
|
||||||
source ~/.vim/plugin-confs/fzf.vim
|
source ~/.vim/plugin-confs/fzf.vim
|
||||||
source ~/.vim/plugin-confs/lightline.vim
|
|
||||||
source ~/.vim/plugin-confs/vim-closetag.vim
|
source ~/.vim/plugin-confs/vim-closetag.vim
|
||||||
source ~/.vim/plugin-confs/wakatime.vim
|
source ~/.vim/plugin-confs/wakatime.vim
|
||||||
|
|
||||||
|
@ -22,15 +22,17 @@ nnoremap // :Lines<CR>
|
|||||||
nnoremap ?? :BLines<CR>
|
nnoremap ?? :BLines<CR>
|
||||||
|
|
||||||
nmap gA :lua vim.lsp.buf.code_actions()<CR>
|
nmap gA :lua vim.lsp.buf.code_actions()<CR>
|
||||||
nmap gDc :lua vim.lsp.buf.declaration()<CR>
|
nmap gd :Telescope lsp_definitions<CR>
|
||||||
nmap gDf :lua vim.lsp.buf.definition()<CR>
|
nmap gDc :Telescope lsp_implementations<CR>
|
||||||
|
nmap gDf :Telescope lsp_definitions<CR>
|
||||||
nmap gF :edit <cfile><cr>
|
nmap gF :edit <cfile><cr>
|
||||||
nmap gT :lua vim.lsp.buf.type_definition()<CR>
|
nmap gT :Telescope lsp_type_definitions<CR>
|
||||||
nmap gb :Gitsigns blame_line<CR>
|
nmap gb :Gitsigns blame_line<CR>
|
||||||
" nmap gd :lua vim.lsp.buf.definition()<CR>
|
" nmap gd :lua vim.lsp.buf.definition()<CR>
|
||||||
nmap gi :lua vim.lsp.buf.implementation()<CR>
|
nmap gi :Telescope lsp_implementations<CR>
|
||||||
|
nmap gj :Telescope jumplist<CR>
|
||||||
nmap gl :lua vim.lsp.buf.code_lens()<CR>
|
nmap gl :lua vim.lsp.buf.code_lens()<CR>
|
||||||
nmap gr :lua vim.lsp.buf.references()<CR>
|
nmap gr :Telescope lsp_references<CR>
|
||||||
nmap gs :lua vim.lsp.buf.signature_help()<CR>
|
nmap gs :lua vim.lsp.buf.signature_help()<CR>
|
||||||
|
|
||||||
nmap Q !!$SHELL<CR>
|
nmap Q !!$SHELL<CR>
|
||||||
@ -40,55 +42,60 @@ nmap rn :lua vim.lsp.buf.rename()<CR>
|
|||||||
nmap <leader>as :FloatermNew --title=aniwrapper aniwrapper -qtdoomone -D144<CR>
|
nmap <leader>as :FloatermNew --title=aniwrapper aniwrapper -qtdoomone -D144<CR>
|
||||||
nmap <leader>ad :FloatermNew --title=aniwrapper ani-cli -q720p -cd/home/sudacode/Videos/sauce -D144<CR>
|
nmap <leader>ad :FloatermNew --title=aniwrapper ani-cli -q720p -cd/home/sudacode/Videos/sauce -D144<CR>
|
||||||
|
|
||||||
nmap <leader>bb :Buffers<CR>
|
nmap <leader>bb :Telescope buffers<CR>
|
||||||
nmap <leader>bk :bdelete<CR>
|
nmap <leader>bk :bdelete<CR>
|
||||||
nmap <leader>bn :bnext<CR>
|
nmap <leader>bn :bnext<CR>
|
||||||
nmap <leader>bp :bprev<CR>
|
nmap <leader>bp :bprev<CR>
|
||||||
|
|
||||||
nmap <leader>ca :lua vim.lsp.buf.code_action()<CR>
|
nmap <leader>ca :lua vim.lsp.buf.code_action()<CR>
|
||||||
nmap <leader>cc :vert Copilot<CR>
|
nmap <leader>cc :vert Copilot<CR>
|
||||||
nmap <leader>cd :LspDiagnostics <bufnr><CR>
|
nmap <leader>cd :Telescope diagnostics<CR>
|
||||||
nmap <leader>cl :lua vim.lsp.diagnostic.show_line_diagnostics()<CR>
|
" nmap <leader>cl :lua vim.lsp.diagnostic.show_line_diagnostics()<CR>
|
||||||
nnoremap <silent> <Leader>cn :DashboardNewFile<CR>
|
nnoremap <silent> <Leader>cn :DashboardNewFile<CR>
|
||||||
|
|
||||||
nmap <leader>ff :CocCommand fzf-preview.ProjectFiles<CR>
|
nnoremap <leader>ff :Telescope find_files<cr>
|
||||||
|
nnoremap <leader>fg :Telescope live_grep<cr>
|
||||||
|
nnoremap <leader>fb :Telescope buffers<cr>
|
||||||
|
nnoremap <leader>fh :Telescope help_tags<cr>
|
||||||
nmap <silent> <Leader>fa :DashboardFindWord<CR>
|
nmap <silent> <Leader>fa :DashboardFindWord<CR>
|
||||||
nmap <silent> <Leader>fb :DashboardJumpMark<CR>
|
nmap <silent> <Leader>fb :DashboardJumpMark<CR>
|
||||||
nmap <silent> <Leader>fh :DashboardFindHistory<CR>
|
nmap <silent> <Leader>fh :DashboardFindHistory<CR>
|
||||||
|
|
||||||
nmap <leader>gb :Gitsigns blame_line<CR>
|
nmap <leader>gb :Gitsigns blame_line<CR>
|
||||||
nmap <leader>gc :Commits<CR>
|
nmap <leader>gc :Telescope git_commits<CR>
|
||||||
nmap <leader>gf :GitFiles<CR>
|
nmap <leader>gf :Telescope git_files<CR>
|
||||||
" nmap <leader>gg :Neogit<CR>
|
" nmap <leader>gg :Neogit<CR>
|
||||||
nmap <leader>gg :FloatermNew --title=lazygit --width=1.0 --height=1.0 --opener=vsplit lazygit<CR>
|
nmap <leader>gg :FloatermNew --title=lazygit --width=1.0 --height=1.0 --opener=vsplit lazygit<CR>
|
||||||
nnoremap gP <cmd>lua require('goto-preview').close_all_win()<CR>
|
nnoremap gP <cmd>lua require('goto-preview').close_all_win()<CR>
|
||||||
nnoremap gR <cmd>TroubleToggle lsp_references<cr>
|
nnoremap gR <cmd>Telescope lsp_references<cr>
|
||||||
nnoremap gpc <cmd>lua require('goto-preview').close_all_win()<CR>
|
nnoremap gpc <cmd>lua require('goto-preview').close_all_win()<CR>
|
||||||
nnoremap gpd <cmd>lua require('goto-preview').goto_preview_definition()<CR>
|
nnoremap gpd <cmd>lua require('goto-preview').goto_preview_definition()<CR>
|
||||||
nnoremap gpi <cmd>lua require('goto-preview').goto_preview_implementation()<CR>
|
nnoremap gpi <cmd>lua require('goto-preview').goto_preview_implementation()<CR>
|
||||||
|
|
||||||
nmap <leader>hc :Commands<CR>
|
nmap <leader>hc :Telescope commands<CR>
|
||||||
nmap <leader>hh :Helptags<CR>
|
nmap <leader>hh :Telescope tags<CR>
|
||||||
nmap <leader>hk :Maps<CR>
|
nmap <leader>hk :Telescope keymaps<CR>
|
||||||
|
nmap <leader>hs :Telescope spell_suggest<CR>
|
||||||
|
|
||||||
nmap <leader>isp :-1read $HOME/Templates/python.py<CR>4jw
|
nmap <leader>isp :-1read $HOME/Templates/python.py<CR>4jw
|
||||||
|
|
||||||
nmap <leader>j :AnyJump<CR>
|
nmap <leader>j :AnyJump<CR>
|
||||||
|
|
||||||
nmap K :lua vim.lsp.buf.hover()<CR>
|
nmap K :DocsViewToggle<CR>
|
||||||
|
" nmap K :lua vim.lsp.buf.hover()<CR>
|
||||||
|
|
||||||
nmap <leader>lD :lua vim.lsp.buf.definition()<CR>
|
nmap <leader>lD :Telescope lsp_definitions<CR>
|
||||||
nmap <leader>la :lua vim.lsp.buf.code_action()<CR>
|
nmap <leader>la :lua vim.lsp.buf.code_action()<CR>
|
||||||
nmap <leader>lci :lua vim.lsp.buf.incoming_calls()<CR>
|
nmap <leader>lci :Telescope lsp_incoming_calls<CR>
|
||||||
nmap <leader>lco :lua vim.lsp.buf.outgoing_calls()<CR>
|
nmap <leader>lco :Telescope lsp_outgoing_calls<CR>
|
||||||
nmap <leader>ld :lua vim.lsp.buf.declaration()<CR>
|
nmap <leader>ld :Telescope lsp_declarations<CR>
|
||||||
nmap <leader>lh :lua vim.lsp.buf.signature_help()<CR>
|
nmap <leader>lh :lua vim.lsp.buf.signature_help()<CR>
|
||||||
nmap <leader>li :lua vim.lsp.buf.implementation()<CR>
|
nmap <leader>li :Telescope lsp_implementations<CR>
|
||||||
nmap <leader>lr :lua vim.lsp.buf.references()<CR>
|
nmap <leader>lr :Telescope lsp_references<CR>
|
||||||
nmap <leader>lR :lua vim.lsp.buf.rename()<CR>
|
nmap <leader>lR :lua vim.lsp.buf.rename()<CR>
|
||||||
nmap <leader>ls :lua vim.lsp.buf.document_symbol()<CR>
|
nmap <leader>ls :Telescope lsp_document_symbols<CR>
|
||||||
nmap <leader>lt :lua vim.lsp.buf.type_definition()<CR>
|
nmap <leader>lt :Telescope lsp_type_definitions<CR>
|
||||||
nmap <leader>lw :lua vim.lsp.buf.workspace_symbol()<CR>
|
nmap <leader>lw :Telescope lsp_dynamic_workspace_symbols<CR>
|
||||||
|
|
||||||
nmap <leader>n :NvimTreeToggle<CR>
|
nmap <leader>n :NvimTreeToggle<CR>
|
||||||
|
|
||||||
@ -106,13 +113,14 @@ nmap <leader>r :NvimTreeRefresh<CR>
|
|||||||
|
|
||||||
nmap <Leader>sl :<C-u>SessionLoad<CR>
|
nmap <Leader>sl :<C-u>SessionLoad<CR>
|
||||||
nmap <Leader>ss :<C-u>SessionSave<CR>
|
nmap <Leader>ss :<C-u>SessionSave<CR>
|
||||||
nmap <leader>sF :AllFiles<Cr>
|
|
||||||
nmap <leader>sc :nohls<Cr>
|
nmap <leader>sc :nohls<Cr>
|
||||||
nmap <leader>sf :Files<Cr>
|
nmap <leader>sC :Telescope commands<Cr>
|
||||||
nmap <leader>sh :History:<CR>
|
nmap <leader>sf :Telescope find_files<Cr>
|
||||||
nmap <leader>s/ :History/<CR>
|
nmap <leader>sh :Telescope command_history<CR>
|
||||||
|
nmap <leader>sm :Telescope man_pages<CR>
|
||||||
|
nmap <leader>s/ :Telescope search_history<CR>
|
||||||
|
|
||||||
nnoremap <silent> <Leader>tc :DashboardChangeColorscheme<CR>
|
nnoremap <silent> <Leader>tc :Telescope colorscheme<CR>
|
||||||
nmap <leader>tf :wa<CR>:FloatermToggle floatterm<CR>
|
nmap <leader>tf :wa<CR>:FloatermToggle floatterm<CR>
|
||||||
nmap <leader>to :SymbolsOutline<CR>
|
nmap <leader>to :SymbolsOutline<CR>
|
||||||
nmap <leader>tp :FloatermToggle ipython<CR>
|
nmap <leader>tp :FloatermToggle ipython<CR>
|
||||||
|
133
nvim/keybindings.vim.old
Normal file
133
nvim/keybindings.vim.old
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
nmap <F4> :set paste!<Bar>set paste?<CR>
|
||||||
|
nmap <F5> :!
|
||||||
|
|
||||||
|
" reselect visual selection after indent
|
||||||
|
vnoremap < <gv
|
||||||
|
vnoremap > >gv
|
||||||
|
|
||||||
|
" for toggling/hiding the split-term
|
||||||
|
tnoremap <C-T> <C-\><C-n>:FloatermToggle floatterm<CR>
|
||||||
|
tnoremap <Esc> <C-\><C-n>
|
||||||
|
tnoremap <leader>tt <C-\><C-N>:FloatermToggle split-term<CR>
|
||||||
|
tnoremap <leader>tf <C-\><C-N>:FloatermToggle floatterm<CR>
|
||||||
|
tnoremap <leader>tp <C-\><C-N>:FloatermToggle ipython<CR>
|
||||||
|
tnoremap <leader>tP <C-\><C-N>:FloatermToggle ipython-full<CR>
|
||||||
|
|
||||||
|
nmap <C-J> :bnext<CR>
|
||||||
|
nmap <C-K> :bprev<CR>
|
||||||
|
nmap <C-T> :wa<CR>:FloatermToggle floatterm<CR>
|
||||||
|
|
||||||
|
" open file under cursor, create if necessary
|
||||||
|
nnoremap // :Lines<CR>
|
||||||
|
nnoremap ?? :BLines<CR>
|
||||||
|
|
||||||
|
nmap gA :lua vim.lsp.buf.code_actions()<CR>
|
||||||
|
nmap gDc :lua vim.lsp.buf.declaration()<CR>
|
||||||
|
nmap gDf :lua vim.lsp.buf.definition()<CR>
|
||||||
|
nmap gF :edit <cfile><cr>
|
||||||
|
nmap gT :lua vim.lsp.buf.type_definition()<CR>
|
||||||
|
nmap gb :Gitsigns blame_line<CR>
|
||||||
|
" nmap gd :lua vim.lsp.buf.definition()<CR>
|
||||||
|
nmap gi :lua vim.lsp.buf.implementation()<CR>
|
||||||
|
nmap gl :lua vim.lsp.buf.code_lens()<CR>
|
||||||
|
nmap gr :lua vim.lsp.buf.references()<CR>
|
||||||
|
nmap gs :lua vim.lsp.buf.signature_help()<CR>
|
||||||
|
|
||||||
|
nmap Q !!$SHELL<CR>
|
||||||
|
|
||||||
|
nmap rn :lua vim.lsp.buf.rename()<CR>
|
||||||
|
|
||||||
|
nmap <leader>as :FloatermNew --title=aniwrapper aniwrapper -qtdoomone -D144<CR>
|
||||||
|
nmap <leader>ad :FloatermNew --title=aniwrapper ani-cli -q720p -cd/home/sudacode/Videos/sauce -D144<CR>
|
||||||
|
|
||||||
|
nmap <leader>bb :Buffers<CR>
|
||||||
|
nmap <leader>bk :bdelete<CR>
|
||||||
|
nmap <leader>bn :bnext<CR>
|
||||||
|
nmap <leader>bp :bprev<CR>
|
||||||
|
|
||||||
|
nmap <leader>ca :lua vim.lsp.buf.code_action()<CR>
|
||||||
|
nmap <leader>cc :vert Copilot<CR>
|
||||||
|
nmap <leader>cd :LspDiagnostics <bufnr><CR>
|
||||||
|
nmap <leader>cl :lua vim.lsp.diagnostic.show_line_diagnostics()<CR>
|
||||||
|
nnoremap <silent> <Leader>cn :DashboardNewFile<CR>
|
||||||
|
|
||||||
|
nmap <leader>ff :CocCommand fzf-preview.ProjectFiles<CR>
|
||||||
|
nmap <silent> <Leader>fa :DashboardFindWord<CR>
|
||||||
|
nmap <silent> <Leader>fb :DashboardJumpMark<CR>
|
||||||
|
nmap <silent> <Leader>fh :DashboardFindHistory<CR>
|
||||||
|
|
||||||
|
nmap <leader>gb :Gitsigns blame_line<CR>
|
||||||
|
nmap <leader>gc :Commits<CR>
|
||||||
|
nmap <leader>gf :GitFiles<CR>
|
||||||
|
" nmap <leader>gg :Neogit<CR>
|
||||||
|
nmap <leader>gg :FloatermNew --title=lazygit --width=1.0 --height=1.0 --opener=vsplit lazygit<CR>
|
||||||
|
nnoremap gP <cmd>lua require('goto-preview').close_all_win()<CR>
|
||||||
|
nnoremap gR <cmd>TroubleToggle lsp_references<cr>
|
||||||
|
nnoremap gpc <cmd>lua require('goto-preview').close_all_win()<CR>
|
||||||
|
nnoremap gpd <cmd>lua require('goto-preview').goto_preview_definition()<CR>
|
||||||
|
nnoremap gpi <cmd>lua require('goto-preview').goto_preview_implementation()<CR>
|
||||||
|
|
||||||
|
nmap <leader>hc :Commands<CR>
|
||||||
|
nmap <leader>hh :Helptags<CR>
|
||||||
|
nmap <leader>hk :Maps<CR>
|
||||||
|
|
||||||
|
nmap <leader>isp :-1read $HOME/Templates/python.py<CR>4jw
|
||||||
|
|
||||||
|
nmap <leader>j :AnyJump<CR>
|
||||||
|
|
||||||
|
nmap K :lua vim.lsp.buf.hover()<CR>
|
||||||
|
|
||||||
|
nmap <leader>lD :lua vim.lsp.buf.definition()<CR>
|
||||||
|
nmap <leader>la :lua vim.lsp.buf.code_action()<CR>
|
||||||
|
nmap <leader>lci :lua vim.lsp.buf.incoming_calls()<CR>
|
||||||
|
nmap <leader>lco :lua vim.lsp.buf.outgoing_calls()<CR>
|
||||||
|
nmap <leader>ld :lua vim.lsp.buf.declaration()<CR>
|
||||||
|
nmap <leader>lh :lua vim.lsp.buf.signature_help()<CR>
|
||||||
|
nmap <leader>li :lua vim.lsp.buf.implementation()<CR>
|
||||||
|
nmap <leader>lr :lua vim.lsp.buf.references()<CR>
|
||||||
|
nmap <leader>lR :lua vim.lsp.buf.rename()<CR>
|
||||||
|
nmap <leader>ls :lua vim.lsp.buf.document_symbol()<CR>
|
||||||
|
nmap <leader>lt :lua vim.lsp.buf.type_definition()<CR>
|
||||||
|
nmap <leader>lw :lua vim.lsp.buf.workspace_symbol()<CR>
|
||||||
|
|
||||||
|
nmap <leader>n :NvimTreeToggle<CR>
|
||||||
|
|
||||||
|
nmap <leader>ob :FloatermNew --title=bpytop --opener=vsplit bpytop<CR>
|
||||||
|
nmap <leader>od :FloatermNew --title=lazydocker --opener=vsplit lazydocker<CR>
|
||||||
|
nmap <leader>of :wa<CR>:FloatermToggle floatterm<CR>
|
||||||
|
nmap <leader>oh :FloatermNew --title=floaterm --name=split-term --opener=edit --wintype=split --position=botright --height=0.45<CR>
|
||||||
|
nmap <leader>on :FloatermNew --title=ncmpcpp --opener=vsplit ncmpcpp<CR>
|
||||||
|
nmap <leader>op :FloatermNew --title=ipython --name=ipython --opener=split --wintype=vsplit --position=botright --width=0.5 ipython<CR>
|
||||||
|
nmap <leader>oP :FloatermNew --title=ipython-full --name=ipython-full --opener=edit --width=1.0 --height=1.0 ipython<CR>
|
||||||
|
nmap <leader>or :FloatermNew --title=ranger --opener=vsplit ranger --cmd="cd $PWD"<CR>
|
||||||
|
nmap <leader>ot :FloatermNew --title=floaterm --name=split-term --opener=edit --wintype=vsplit --position=botright --width=0.5<CR>
|
||||||
|
|
||||||
|
nmap <leader>r :NvimTreeRefresh<CR>
|
||||||
|
|
||||||
|
nmap <Leader>sl :<C-u>SessionLoad<CR>
|
||||||
|
nmap <Leader>ss :<C-u>SessionSave<CR>
|
||||||
|
nmap <leader>sF :AllFiles<Cr>
|
||||||
|
nmap <leader>sc :nohls<Cr>
|
||||||
|
nmap <leader>sf :Files<Cr>
|
||||||
|
nmap <leader>sh :History:<CR>
|
||||||
|
nmap <leader>s/ :History/<CR>
|
||||||
|
|
||||||
|
nnoremap <silent> <Leader>tc :Colors<CR>
|
||||||
|
nmap <leader>tf :wa<CR>:FloatermToggle floatterm<CR>
|
||||||
|
nmap <leader>to :SymbolsOutline<CR>
|
||||||
|
nmap <leader>tp :FloatermToggle ipython<CR>
|
||||||
|
nmap <leader>tP :FloatermToggle ipython-full<CR>
|
||||||
|
nmap <leader>tt :FloatermToggle split-term<CR>
|
||||||
|
|
||||||
|
nmap <leader>wa :lua vim.lsp.buf.add_workspace_folder()<CR>
|
||||||
|
nmap <leader>wl :lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>
|
||||||
|
nmap <leader>wr :lua vim.lsp.buf.remove_workspace_folder()<CR>
|
||||||
|
|
||||||
|
" nnoremap <leader>xd <cmd>TroubleToggle document_diagnostics<cr>
|
||||||
|
" nnoremap <leader>xl <cmd>TroubleToggle loclist<cr>
|
||||||
|
" nnoremap <leader>xq <cmd>TroubleToggle quickfix<cr>
|
||||||
|
" nnoremap <leader>xw <cmd>TroubleToggle workspace_diagnostics<cr>
|
||||||
|
" nnoremap <leader>xx <cmd>TroubleToggle<cr>
|
||||||
|
|
||||||
|
nmap <leader>y "+
|
||||||
|
vmap <leader>y "+
|
@ -35,7 +35,7 @@ require('bufferline').setup {
|
|||||||
max_prefix_length = 15, -- prefix used when a buffer is de-duplicated
|
max_prefix_length = 15, -- prefix used when a buffer is de-duplicated
|
||||||
tab_size = 18,
|
tab_size = 18,
|
||||||
-- diagnostics = false | "nvim_lsp" | "coc",
|
-- diagnostics = false | "nvim_lsp" | "coc",
|
||||||
diagnostics = "coc",
|
diagnostics = "nvim_lsp",
|
||||||
diagnostics_update_in_insert = false,
|
diagnostics_update_in_insert = false,
|
||||||
diagnostics_indicator = function(count, level, diagnostics_dict, context)
|
diagnostics_indicator = function(count, level, diagnostics_dict, context)
|
||||||
local s = " "
|
local s = " "
|
||||||
|
@ -1,27 +1,57 @@
|
|||||||
require('doom-one').setup({
|
-- require('doom-one').setup({
|
||||||
cursor_coloring = false,
|
-- cursor_coloring = false,
|
||||||
terminal_colors = false,
|
-- terminal_colors = false,
|
||||||
italic_comments = false,
|
-- italic_comments = false,
|
||||||
enable_treesitter = true,
|
-- enable_treesitter = true,
|
||||||
transparent_background = false,
|
-- transparent_background = false,
|
||||||
pumblend = {
|
-- pumblend = {
|
||||||
enable = true,
|
-- enable = true,
|
||||||
transparency_amount = 20,
|
-- transparency_amount = 20,
|
||||||
},
|
-- },
|
||||||
plugins_integrations = {
|
-- plugins_integrations = {
|
||||||
neorg = true,
|
-- neorg = true,
|
||||||
barbar = true,
|
-- barbar = true,
|
||||||
bufferline = false,
|
-- bufferline = false,
|
||||||
gitgutter = false,
|
-- gitgutter = false,
|
||||||
gitsigns = true,
|
-- gitsigns = true,
|
||||||
telescope = false,
|
-- telescope = false,
|
||||||
neogit = true,
|
-- neogit = true,
|
||||||
nvim_tree = true,
|
-- nvim_tree = true,
|
||||||
dashboard = true,
|
-- dashboard = true,
|
||||||
startify = true,
|
-- startify = true,
|
||||||
whichkey = true,
|
-- whichkey = true,
|
||||||
indent_blankline = true,
|
-- indent_blankline = true,
|
||||||
vim_illuminate = true,
|
-- vim_illuminate = true,
|
||||||
lspsaga = false,
|
-- lspsaga = false,
|
||||||
},
|
-- },
|
||||||
})
|
-- })
|
||||||
|
|
||||||
|
|
||||||
|
vim.g.doom_one_cursor_coloring = true
|
||||||
|
-- Set :terminal colors
|
||||||
|
vim.g.doom_one_terminal_colors = true
|
||||||
|
-- Enable italic comments
|
||||||
|
vim.g.doom_one_italic_comments = false
|
||||||
|
-- Enable TS support
|
||||||
|
vim.g.doom_one_enable_treesitter = true
|
||||||
|
-- Color whole diagnostic text or only underline
|
||||||
|
vim.g.doom_one_diagnostics_text_color = true
|
||||||
|
-- Enable transparent background
|
||||||
|
vim.g.doom_one_transparent_background = false
|
||||||
|
|
||||||
|
-- Pumblend transparency
|
||||||
|
vim.g.doom_one_pumblend_enable = false
|
||||||
|
vim.g.doom_one_pumblend_transparency = 20
|
||||||
|
|
||||||
|
-- Plugins integration
|
||||||
|
vim.g.doom_one_plugin_neorg = true
|
||||||
|
vim.g.doom_one_plugin_barbar = false
|
||||||
|
vim.g.doom_one_plugin_telescope = false
|
||||||
|
vim.g.doom_one_plugin_neogit = true
|
||||||
|
vim.g.doom_one_plugin_nvim_tree = true
|
||||||
|
vim.g.doom_one_plugin_dashboard = true
|
||||||
|
vim.g.doom_one_plugin_startify = true
|
||||||
|
vim.g.doom_one_plugin_whichkey = true
|
||||||
|
vim.g.doom_one_plugin_indent_blankline = true
|
||||||
|
vim.g.doom_one_plugin_vim_illuminate = true
|
||||||
|
vim.g.doom_one_plugin_lspsaga = false
|
||||||
|
@ -196,4 +196,21 @@ for _, lsp in pairs(servers) do
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local plugins_path = vim.fn.stdpath("data") .. "site/autoload/plug.vim"
|
||||||
|
local dir_list = vim.fn.glob(plugins_path .. "/*", true, true)
|
||||||
|
local library_table = {}
|
||||||
|
for _, v in ipairs(dir_list) do
|
||||||
|
library_table[v .. "/lua"] = true
|
||||||
|
end
|
||||||
|
library_table[vim.fn.expand("$VIMRUNTIME/lua")] = true
|
||||||
|
library_table[vim.fn.stdpath("config") .. "/lua"] = true
|
||||||
|
require('lspconfig').sumneko_lua.setup({
|
||||||
|
settings = {
|
||||||
|
Lua = {
|
||||||
|
diagnostics = { globals = { "vim" } },
|
||||||
|
workspace = { library = library_table },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
-- require 'lspconfig'.bashls.setup {}
|
-- require 'lspconfig'.bashls.setup {}
|
||||||
|
@ -3,7 +3,7 @@ local cmp = require 'cmp'
|
|||||||
local lspkind = require('lspkind')
|
local lspkind = require('lspkind')
|
||||||
|
|
||||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)
|
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
|
||||||
|
|
||||||
-- luasnip setup
|
-- luasnip setup
|
||||||
local luasnip = require 'luasnip'
|
local luasnip = require 'luasnip'
|
||||||
|
6
nvim/plugin-confs/nvim-docs-view.lua
Normal file
6
nvim/plugin-confs/nvim-docs-view.lua
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
require("docs-view").setup {
|
||||||
|
-- position = "right",
|
||||||
|
-- width = 90,
|
||||||
|
position = "bottom",
|
||||||
|
height = 20,
|
||||||
|
}
|
@ -40,7 +40,7 @@ require 'nvim-tree'.setup {
|
|||||||
},
|
},
|
||||||
view = {
|
view = {
|
||||||
width = 35,
|
width = 35,
|
||||||
height = 35,
|
-- height = 35,
|
||||||
hide_root_folder = false,
|
hide_root_folder = false,
|
||||||
side = 'left',
|
side = 'left',
|
||||||
-- auto_resize = false,
|
-- auto_resize = false,
|
||||||
|
@ -1,21 +1,12 @@
|
|||||||
local onedarkpro = require("onedarkpro")
|
local onedarkpro = require("onedarkpro")
|
||||||
onedarkpro.setup({
|
onedarkpro.setup({
|
||||||
-- Theme can be overwritten with 'onedark' or 'onelight' as a string!
|
|
||||||
-- theme = function()
|
|
||||||
-- if vim.o.background == "dark" then
|
|
||||||
-- return "onedark"
|
|
||||||
-- else
|
|
||||||
-- return "onelight"
|
|
||||||
-- end
|
|
||||||
-- end,
|
|
||||||
theme = "onedark",
|
theme = "onedark",
|
||||||
colors = {}, -- Override default colors. Can specify colors for "onelight" or "onedark" themes by passing in a table
|
-- colors = {}, -- Override default colors. Can specify colors for "onelight" or "onedark" themes by passing in a table
|
||||||
hlgroups = {}, -- Override default highlight groups
|
-- hlgroups = {}, -- Override default highlight groups
|
||||||
plugins = { -- Override which plugins highlight groups are loaded
|
plugins = { -- Override which plugins highlight groups are loaded
|
||||||
native_lsp = true,
|
native_lsp = true,
|
||||||
polygot = true,
|
polygot = true,
|
||||||
treesitter = true,
|
treesitter = true,
|
||||||
-- Others omitted for brevity
|
|
||||||
},
|
},
|
||||||
styles = {
|
styles = {
|
||||||
comments = "italic",
|
comments = "italic",
|
||||||
|
43
nvim/plugin-confs/telescope.lua
Normal file
43
nvim/plugin-confs/telescope.lua
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
require('telescope').setup{
|
||||||
|
defaults = {
|
||||||
|
-- Default configuration for telescope goes here:
|
||||||
|
-- config_key = value,
|
||||||
|
layout_strategy = 'flex',
|
||||||
|
width = 0.9,
|
||||||
|
wrap_results = true,
|
||||||
|
preview = {
|
||||||
|
border = true,
|
||||||
|
borderchars = { '─', '│', '─', '│', '╭', '╮', '╯', '╰' },
|
||||||
|
title = true,
|
||||||
|
dynamic_preview_title = true,
|
||||||
|
treesitter = true,
|
||||||
|
},
|
||||||
|
mappings = {
|
||||||
|
i = {
|
||||||
|
-- map actions.which_key to <C-h> (default: <C-/>)
|
||||||
|
-- actions.which_key shows the mappings for your picker,
|
||||||
|
-- e.g. git_{create, delete, ...}_branch for the git_branches picker
|
||||||
|
["<C-h>"] = "which_key"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
pickers = {
|
||||||
|
-- Default configuration for builtin pickers goes here:
|
||||||
|
-- picker_name = {
|
||||||
|
-- picker_config_key = value,
|
||||||
|
-- ...
|
||||||
|
-- }
|
||||||
|
-- Now the picker_config_key will be applied every time you call this
|
||||||
|
-- builtin picker
|
||||||
|
find_files = {
|
||||||
|
-- theme = "dropdown"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
extensions = {
|
||||||
|
-- Your extension configuration goes here:
|
||||||
|
-- extension_name = {
|
||||||
|
-- extension_config_key = value,
|
||||||
|
-- }
|
||||||
|
-- please take a look at the readme of the extension you want to configure
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user