Files
dotfiles/nvim/init.lua

60 lines
809 B
Lua

require('config.lazy')
vim.lsp.enable(
"rust_analyzer",
"clangd",
"jdtls",
"csharp_ls",
"html",
"ts_ls",
"css_ls",
"tinymist"
)
vim.keymap.set({'n', 'x', 'o'}, ',', vim.diagnostic.open_float)
vim.keymap.set({'n', 'x', 'o', 'i'}, '<c-s>', "<cmd>up<cr>")
vim.cmd([[
no e <c-r>
no a i
no i a
no A I
no I A
no k o
no j J
no h <left>
no t <up>
no n <down>
no s <right>
no T <pageup>
no N <pagedown>
no / ^
no = <end>
ino <c-bs> <c-w>
ino <c-v> <esc><c-v>
no <c-h> <esc>
ino <c-h> <esc>
no <c-t> :
ino <c-t> <c-o>:
cno <c-h> <esc>
no + "
no <c-f> /
nn <enter> :noh<enter>
nn <c-enter> n
set number
set relativenumber
hi LineNr ctermfg=67
set tabstop=4
set shiftwidth=4
set cmdheight=0
let g:vsnip_snippet_dir = '~/.config/nvim/vsnip'
colorscheme catppuccin
]])