shuffle bits around \o/
This commit is contained in:
parent
d4ac2d0235
commit
57d8f1afcf
@ -1,13 +1,3 @@
|
||||
autocmd BufReadPost *
|
||||
\ if line("'\"") > 1 && line("'\"") <= line("$") |
|
||||
\ exe "normal! g`\"" |
|
||||
\ endif
|
||||
|
||||
nmap <Leader>bi :PaqInstall<CR>
|
||||
nmap <Leader>bu :PaqUpdate<CR>
|
||||
nmap <Leader>bc :PaqClean<CR>
|
||||
|
||||
noremap <silent> <Leader>g :GitGutterBufferToggle<CR>
|
||||
" Open files in horizontal split
|
||||
nnoremap <silent> <Leader>S :call fzf#run({
|
||||
\ 'down': '40%',
|
||||
@ -22,14 +12,6 @@ command! -bang -nargs=? -complete=dir Files
|
||||
\ call fzf#vim#files(<q-args>, {'options': ['--no-color']}, <bang>0)
|
||||
nmap <C-p> :Files<cr>
|
||||
|
||||
highlight OverLength ctermfg=red
|
||||
match OverLength /\%79v.\+/
|
||||
|
||||
set dir=~/.swaps
|
||||
set nolist
|
||||
set ruler
|
||||
set mouse-=a
|
||||
|
||||
|
||||
au User lsp_setup call lsp#register_server({
|
||||
\ 'name': 'rust-analyzer',
|
||||
@ -37,25 +19,12 @@ au User lsp_setup call lsp#register_server({
|
||||
\ 'allowlist': ['rust'],
|
||||
\ })
|
||||
|
||||
let g:ale_linters = {
|
||||
\ 'javascript': ['eslint'],
|
||||
\ 'ruby': ['rubocop26'],
|
||||
\}
|
||||
|
||||
" GitGutter
|
||||
let g:gitgutter_realtime = 1
|
||||
|
||||
nmap <silent> ,/ :let @/=""<CR>
|
||||
|
||||
let g:go_fmt_command = "goimports"
|
||||
let g:vimrubocop_keymap = 0
|
||||
nmap <Leader>r :RuboCop<CR>
|
||||
|
||||
nnoremap ,o :Files<cr>
|
||||
|
||||
nmap <leader>2 :set list!<CR>
|
||||
nmap <leader>3 :set nu!<CR>
|
||||
nmap <leader>4 :set paste!<CR>
|
||||
|
||||
au BufNewFile,BufRead *.md set noai noshowmatch tw=79
|
||||
au BufNewFile,BufRead *.md setlocal spell spelllang=en_us tw=79
|
||||
|
@ -1,5 +1,6 @@
|
||||
local execute = vim.api.nvim_command
|
||||
local fn = vim.fn
|
||||
local cmd = vim.cmd
|
||||
local map = vim.api.nvim_set_keymap
|
||||
local o = vim.o
|
||||
|
||||
@ -24,6 +25,7 @@ require("paq") {
|
||||
"ziglang/zig.vim";
|
||||
"thindil/Ada-Bundle";
|
||||
|
||||
"kyazdani42/nvim-tree.lua";
|
||||
"nvim-treesitter/nvim-treesitter";
|
||||
"kristijanhusak/orgmode.nvim";
|
||||
|
||||
@ -48,14 +50,35 @@ require("compe").setup {
|
||||
local lspc = require("lspconfig")
|
||||
lspc.gopls.setup {};
|
||||
|
||||
vim.cmd("syntax off");
|
||||
vim.cmd("source ~/.config/nvim/dumb.vim");
|
||||
cmd("syntax off");
|
||||
cmd("source ~/.config/nvim/dumb.vim");
|
||||
|
||||
cmd("highlight OverLength ctermfg=red")
|
||||
cmd("match OverLength /\\%79v.\\+/")
|
||||
|
||||
cmd("set dir=~/.swaps")
|
||||
cmd("set nolist")
|
||||
cmd("set ruler")
|
||||
cmd("set mouse-=a")
|
||||
|
||||
o.hlsearch = true;
|
||||
|
||||
require'nvim-tree'.setup()
|
||||
|
||||
require('orgmode').setup({
|
||||
org_agenda_files = {'~/org/*'},
|
||||
org_default_notes_file = '~/org/refile.org',
|
||||
})
|
||||
map("i", "<CR>", "compe#confirm({ 'keys': '<CR>', 'select': v:true })", { expr = true })
|
||||
map('n', '<C-n>', ':NvimTreeToggle<CR>', {noremap = true})
|
||||
map('n', '<leader>r', ':NvimTreeRefresh<CR>', {noremap = true})
|
||||
map('n', '<leader>n', ':NvimTreeFindFile<CR>', {noremap = true})
|
||||
map('n', '<leader>bi', ':PaqInstall<CR>', {noremap = true})
|
||||
map('n', '<leader>bu', ':PaqUpdate<CR>', {noremap = true})
|
||||
map('n', '<leader>bc', ':PaqClean<CR>', {noremap = true})
|
||||
|
||||
vim.api.nvim_set_keymap("i", "<CR>", "compe#confirm({ 'keys': '<CR>', 'select': v:true })", { expr = true })
|
||||
map('n', '<learder>1', ':GitGutterToggle<CR>', {noremap = true})
|
||||
map('n', '<learder>2', ':set list!<CR>', {noremap = true})
|
||||
map('n', '<learder>3', ':set nu!<CR>', {noremap = true})
|
||||
map('n', '<learder>4', ':set paste!<CR>', {noremap = true})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user