Files
dotfiles/nvim/init.lua
2026-02-09 00:01:49 -08:00

84 lines
1.4 KiB
Lua

require('config.lazy')
vim.lsp.enable({
"rust_analyzer",
"jdtls",
"qmlls",
"clangd",
"csharp_ls",
"lua_ls",
"html",
"pylsp",
"pylint",
"ts_ls",
"css_ls",
"tinymist",
"bashls",
"dartls"
})
vim.keymap.set({'n', 'x', 'o'}, ',', vim.diagnostic.open_float)
vim.keymap.set({'n', 'x', 'o', 'i'}, '<c-s>', "<cmd>up<cr>")
if vim.g.neovide then
vim.g.neovide_padding_top = 6
vim.g.neovide_padding_bottom = 6
vim.g.neovide_padding_right = 6
vim.g.neovide_padding_left = 6
end
vim.cmd([[
no e <c-r>
no : ,
no a i
no i a
no A I
no I A
no j J
no J <Up>j
no f f
no F t
no k F
no K T
no h <left>
no t <up>
no n <down>
no s <right>
no T <C-y>
no N <C-e>
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>
nn * o$ $<Left><Left>
no <c-f> /
nn <enter> :noh<enter>
nn <c-enter> n
set number
set relativenumber
hi LineNr ctermfg=67
set expandtab
set tabstop=4
set shiftwidth=4
set cmdheight=0
set scrolloff=12
let g:vsnip_snippet_dir = '~/.config/nvim/vsnip'
colorscheme catppuccin
]])
vim.api.nvim_set_hl(0, "Pmenu", { bg = nil, force = true })
vim.api.nvim_set_hl(0, "FloatBorder", { bg = nil, force = true })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = nil, force = true })