99 lines
1.8 KiB
Lua
99 lines
1.8 KiB
Lua
require('config.lazy')
|
|
|
|
local cd = io.open("/tmp/fishwd", "r")
|
|
if cd ~= nil then
|
|
vim.cmd("cd " .. cd:read("a"))
|
|
end
|
|
|
|
vim.lsp.enable({
|
|
"rust_analyzer",
|
|
"jdtls",
|
|
"clangd",
|
|
"csharp_ls",
|
|
"lua_ls",
|
|
"html",
|
|
"pylsp",
|
|
"pylint",
|
|
"ts_ls",
|
|
"css_ls",
|
|
"tinymist",
|
|
"bashls",
|
|
"kotlin_lsp"
|
|
})
|
|
|
|
if vim.g.neovide then
|
|
vim.o.guifont = "0xProto Nerd Font:h12"
|
|
vim.g.neovide_padding_top = 4
|
|
vim.g.neovide_padding_bottom = 4
|
|
vim.g.neovide_padding_right = 4
|
|
vim.g.neovide_padding_left = 4
|
|
|
|
vim.g.neovide_floating_corner_radius = 0.4
|
|
vim.g.neovide_floating_shadow = true
|
|
vim.g.neovide_floating_z_height = 2
|
|
vim.g.neovide_light_angle_degrees = 45
|
|
vim.g.neovide_light_radius = 8
|
|
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
|
|
set formatexpr=t
|
|
|
|
colorscheme catppuccin
|
|
hi Normal guibg=#111111
|
|
hi Pmenu guibg=#181818
|
|
hi BlinkCmpMenuBorder guibg=#181818
|
|
hi BlinkCmpDoc guibg=#181818
|
|
hi BlinkCmpDocSeparator guibg=#181818
|
|
hi BlinkCmpDocBorder guibg=#181818
|
|
hi BlinkCmpScrollbarThumb guibg=#181818
|
|
hi BlinkCmpScrollbarGutter guibg=#181818
|
|
]])
|
|
|
|
vim.keymap.set({'n', 'x', 'o'}, ',', vim.diagnostic.open_float)
|
|
vim.keymap.set({'n', 'x', 'o', 'i'}, '<c-s>', "<cmd>up<cr>")
|
|
|