Misc vim stuff
This commit is contained in:
parent
82a75e677d
commit
be9d378730
4 changed files with 18 additions and 4 deletions
|
@ -26,7 +26,7 @@
|
||||||
{"<Space>" (cmd "Telescope find_files" "find file")
|
{"<Space>" (cmd "Telescope find_files" "find file")
|
||||||
:r (cmd "Telescope live_grep" "ripgrep")
|
:r (cmd "Telescope live_grep" "ripgrep")
|
||||||
:b (cmd "Telescope buffers" "select buffer")
|
:b (cmd "Telescope buffers" "select buffer")
|
||||||
:w (cmd "w" "save file")
|
:s (cmd "w" "save file")
|
||||||
":" (cmd "Telescope commands" "search commands")
|
":" (cmd "Telescope commands" "search commands")
|
||||||
|
|
||||||
:t {:name "+toggle"
|
:t {:name "+toggle"
|
||||||
|
|
|
@ -31,7 +31,5 @@
|
||||||
;(rust-tools.setup
|
;(rust-tools.setup
|
||||||
; {:tools {:inlay_hints {:show_parameter_hints false}}}))}))
|
; {:tools {:inlay_hints {:show_parameter_hints false}}}))}))
|
||||||
|
|
||||||
(init-lsp :bashls)
|
|
||||||
(init-lsp :clangd)
|
(init-lsp :clangd)
|
||||||
(init-lsp :gopls)
|
|
||||||
(init-lsp :vimls)
|
(init-lsp :vimls)
|
||||||
|
|
|
@ -32,7 +32,14 @@
|
||||||
(set nvim.o.smartindent true)
|
(set nvim.o.smartindent true)
|
||||||
(set nvim.o.expandtab true)
|
(set nvim.o.expandtab true)
|
||||||
|
|
||||||
|
(set nvim.wo.colorcolumn "+1")
|
||||||
(set nvim.wo.cursorline true)
|
(set nvim.wo.cursorline true)
|
||||||
(set nvim.wo.signcolumn "yes")
|
(set nvim.wo.signcolumn "yes")
|
||||||
|
|
||||||
(nvim.command "autocmd FileType * setlocal formatoptions-=cro")
|
(defn make-wiki [name]
|
||||||
|
{:path (.. "~/docs/wiki/" name "/")})
|
||||||
|
|
||||||
|
(tset vim.g "vimwiki_list" [(make-wiki "private")
|
||||||
|
(make-wiki "veil")])
|
||||||
|
|
||||||
|
;(nvim.command "autocmd FileType * setlocal formatoptions-=cro")
|
||||||
|
|
|
@ -20,10 +20,13 @@ require('packer').startup(function ()
|
||||||
-- TODO: look into diffview
|
-- TODO: look into diffview
|
||||||
-- TODO: look into iamcco/markdown-preview.nvim
|
-- TODO: look into iamcco/markdown-preview.nvim
|
||||||
-- TODO: look into vsnip (enable for compe)
|
-- TODO: look into vsnip (enable for compe)
|
||||||
|
use 'alisdair/vim-armasm'
|
||||||
use 'ap/vim-css-color'
|
use 'ap/vim-css-color'
|
||||||
|
use 'arrufat/vala.vim'
|
||||||
use 'editorconfig/editorconfig-vim'
|
use 'editorconfig/editorconfig-vim'
|
||||||
use 'folke/lsp-trouble.nvim'
|
use 'folke/lsp-trouble.nvim'
|
||||||
use 'folke/which-key.nvim'
|
use 'folke/which-key.nvim'
|
||||||
|
use 'gentoo/gentoo-syntax'
|
||||||
use 'github/copilot.vim'
|
use 'github/copilot.vim'
|
||||||
use 'glepnir/lspsaga.nvim'
|
use 'glepnir/lspsaga.nvim'
|
||||||
use 'godlygeek/tabular'
|
use 'godlygeek/tabular'
|
||||||
|
@ -44,6 +47,7 @@ require('packer').startup(function ()
|
||||||
use 'rust-lang/rust.vim'
|
use 'rust-lang/rust.vim'
|
||||||
use 'simrat39/rust-tools.nvim'
|
use 'simrat39/rust-tools.nvim'
|
||||||
use 'tommcdo/vim-exchange'
|
use 'tommcdo/vim-exchange'
|
||||||
|
use 'tpope/vim-abolish'
|
||||||
use 'tpope/vim-fugitive'
|
use 'tpope/vim-fugitive'
|
||||||
use 'tpope/vim-repeat'
|
use 'tpope/vim-repeat'
|
||||||
use 'tpope/vim-surround'
|
use 'tpope/vim-surround'
|
||||||
|
@ -78,6 +82,11 @@ require('packer').startup(function ()
|
||||||
'nvim-lua/popup.nvim',
|
'nvim-lua/popup.nvim',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
use {
|
||||||
|
'vimwiki/vimwiki',
|
||||||
|
branch = 'dev',
|
||||||
|
}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
vim.g['aniseed#env'] = true
|
vim.g['aniseed#env'] = true
|
||||||
|
|
Loading…
Reference in a new issue