idek
This commit is contained in:
@@ -1,21 +1,22 @@
|
||||
require('config.lazy')
|
||||
|
||||
vim.lsp.enable(
|
||||
"rust_analyzer",
|
||||
"clangd",
|
||||
"jdtls",
|
||||
"csharp_ls",
|
||||
"html",
|
||||
"ts_ls",
|
||||
"css_ls",
|
||||
"tinymist"
|
||||
)
|
||||
vim.lsp.enable("rust_analyzer")
|
||||
vim.lsp.enable("jdtls")
|
||||
vim.lsp.enable("clangd")
|
||||
vim.lsp.enable("csharp_ls")
|
||||
vim.lsp.enable("lua_ls")
|
||||
vim.lsp.enable("html")
|
||||
vim.lsp.enable("ts_ls")
|
||||
vim.lsp.enable("css_ls")
|
||||
vim.lsp.enable("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 : ,
|
||||
|
||||
no a i
|
||||
no i a
|
||||
@@ -23,13 +24,17 @@ vim.cmd([[
|
||||
no I A
|
||||
no k o
|
||||
no j J
|
||||
no m q
|
||||
no M Q
|
||||
no q t
|
||||
no Q T
|
||||
|
||||
no h <left>
|
||||
no t <up>
|
||||
no n <down>
|
||||
no s <right>
|
||||
no T <pageup>
|
||||
no N <pagedown>
|
||||
no T <C-y>
|
||||
no N <C-e>
|
||||
no / ^
|
||||
no = <end>
|
||||
|
||||
@@ -49,11 +54,14 @@ vim.cmd([[
|
||||
set number
|
||||
set relativenumber
|
||||
hi LineNr ctermfg=67
|
||||
set expandtab
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set cmdheight=0
|
||||
|
||||
let g:vsnip_snippet_dir = '~/.config/nvim/vsnip'
|
||||
|
||||
colorscheme catppuccin
|
||||
]])
|
||||
]])
|
||||
|
||||
vim.api.nvim_set_hl(0, "Pmenu", { bg = nil })
|
||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = nil })
|
||||
|
||||
@@ -2,10 +2,8 @@ return {
|
||||
'saghen/blink.cmp',
|
||||
dependencies = {
|
||||
"neovim/nvim-lspconfig",
|
||||
'rafamadriz/friendly-snippets'
|
||||
},
|
||||
|
||||
-- use a release tag to download pre-built binaries
|
||||
version = '1.*',
|
||||
---@module 'blink.cmp'
|
||||
---@type blink.cmp.Config
|
||||
@@ -28,20 +26,43 @@ return {
|
||||
nerd_font_variant = 'mono'
|
||||
},
|
||||
|
||||
-- (Default) Only show the documentation popup when manually triggered
|
||||
completion = { documentation = { auto_show = true } },
|
||||
completion = {
|
||||
menu = {
|
||||
border = {'╭', '─', '╮', '│', '╯', '─', '╰', '│'},
|
||||
-- border = {'╓', '─', '╖', '║', '╜', '─', '╙', '║'},
|
||||
draw = {
|
||||
columns = { {
|
||||
"label",
|
||||
"label_description",
|
||||
gap = 1
|
||||
}, {
|
||||
"kind",
|
||||
} }
|
||||
},
|
||||
components = {
|
||||
label = {
|
||||
text = {
|
||||
background = "#ffffff"
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
documentation = {
|
||||
auto_show = true,
|
||||
treesitter_highlighting = true,
|
||||
window = {
|
||||
border = {'╭', '─', '╮', '│', '╯', '─', '╰', '│'},
|
||||
}
|
||||
},
|
||||
ghost_text = {
|
||||
enabled = true,
|
||||
}
|
||||
},
|
||||
|
||||
-- Default list of enabled providers defined so that you can extend it
|
||||
-- elsewhere in your config, without redefining it, due to `opts_extend`
|
||||
sources = {
|
||||
default = { 'lsp', 'snippets' },
|
||||
default = { 'lsp' },
|
||||
},
|
||||
|
||||
-- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
|
||||
-- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
|
||||
-- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
|
||||
--
|
||||
-- See the fuzzy documentation for more information
|
||||
fuzzy = { implementation = "prefer_rust_with_warning" }
|
||||
},
|
||||
opts_extend = { "sources.default" }
|
||||
|
||||
Reference in New Issue
Block a user