idek
This commit is contained in:
@@ -1,21 +1,22 @@
|
|||||||
require('config.lazy')
|
require('config.lazy')
|
||||||
|
|
||||||
vim.lsp.enable(
|
vim.lsp.enable("rust_analyzer")
|
||||||
"rust_analyzer",
|
vim.lsp.enable("jdtls")
|
||||||
"clangd",
|
vim.lsp.enable("clangd")
|
||||||
"jdtls",
|
vim.lsp.enable("csharp_ls")
|
||||||
"csharp_ls",
|
vim.lsp.enable("lua_ls")
|
||||||
"html",
|
vim.lsp.enable("html")
|
||||||
"ts_ls",
|
vim.lsp.enable("ts_ls")
|
||||||
"css_ls",
|
vim.lsp.enable("css_ls")
|
||||||
"tinymist"
|
vim.lsp.enable("tinymist")
|
||||||
)
|
|
||||||
|
|
||||||
vim.keymap.set({'n', 'x', 'o'}, ',', vim.diagnostic.open_float)
|
vim.keymap.set({'n', 'x', 'o'}, ',', vim.diagnostic.open_float)
|
||||||
vim.keymap.set({'n', 'x', 'o', 'i'}, '<c-s>', "<cmd>up<cr>")
|
vim.keymap.set({'n', 'x', 'o', 'i'}, '<c-s>', "<cmd>up<cr>")
|
||||||
|
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
no e <c-r>
|
no e <c-r>
|
||||||
|
no : ,
|
||||||
|
|
||||||
no a i
|
no a i
|
||||||
no i a
|
no i a
|
||||||
@@ -23,13 +24,17 @@ vim.cmd([[
|
|||||||
no I A
|
no I A
|
||||||
no k o
|
no k o
|
||||||
no j J
|
no j J
|
||||||
|
no m q
|
||||||
|
no M Q
|
||||||
|
no q t
|
||||||
|
no Q T
|
||||||
|
|
||||||
no h <left>
|
no h <left>
|
||||||
no t <up>
|
no t <up>
|
||||||
no n <down>
|
no n <down>
|
||||||
no s <right>
|
no s <right>
|
||||||
no T <pageup>
|
no T <C-y>
|
||||||
no N <pagedown>
|
no N <C-e>
|
||||||
no / ^
|
no / ^
|
||||||
no = <end>
|
no = <end>
|
||||||
|
|
||||||
@@ -49,11 +54,14 @@ vim.cmd([[
|
|||||||
set number
|
set number
|
||||||
set relativenumber
|
set relativenumber
|
||||||
hi LineNr ctermfg=67
|
hi LineNr ctermfg=67
|
||||||
|
set expandtab
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
set cmdheight=0
|
set cmdheight=0
|
||||||
|
|
||||||
let g:vsnip_snippet_dir = '~/.config/nvim/vsnip'
|
let g:vsnip_snippet_dir = '~/.config/nvim/vsnip'
|
||||||
|
|
||||||
colorscheme catppuccin
|
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',
|
'saghen/blink.cmp',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
'rafamadriz/friendly-snippets'
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- use a release tag to download pre-built binaries
|
|
||||||
version = '1.*',
|
version = '1.*',
|
||||||
---@module 'blink.cmp'
|
---@module 'blink.cmp'
|
||||||
---@type blink.cmp.Config
|
---@type blink.cmp.Config
|
||||||
@@ -28,20 +26,43 @@ return {
|
|||||||
nerd_font_variant = 'mono'
|
nerd_font_variant = 'mono'
|
||||||
},
|
},
|
||||||
|
|
||||||
-- (Default) Only show the documentation popup when manually triggered
|
completion = {
|
||||||
completion = { documentation = { auto_show = true } },
|
menu = {
|
||||||
|
border = {'╭', '─', '╮', '│', '╯', '─', '╰', '│'},
|
||||||
-- Default list of enabled providers defined so that you can extend it
|
-- border = {'╓', '─', '╖', '║', '╜', '─', '╙', '║'},
|
||||||
-- elsewhere in your config, without redefining it, due to `opts_extend`
|
draw = {
|
||||||
sources = {
|
columns = { {
|
||||||
default = { 'lsp', 'snippets' },
|
"label",
|
||||||
|
"label_description",
|
||||||
|
gap = 1
|
||||||
|
}, {
|
||||||
|
"kind",
|
||||||
|
} }
|
||||||
|
},
|
||||||
|
components = {
|
||||||
|
label = {
|
||||||
|
text = {
|
||||||
|
background = "#ffffff"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
documentation = {
|
||||||
|
auto_show = true,
|
||||||
|
treesitter_highlighting = true,
|
||||||
|
window = {
|
||||||
|
border = {'╭', '─', '╮', '│', '╯', '─', '╰', '│'},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ghost_text = {
|
||||||
|
enabled = true,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
sources = {
|
||||||
|
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" }
|
fuzzy = { implementation = "prefer_rust_with_warning" }
|
||||||
},
|
},
|
||||||
opts_extend = { "sources.default" }
|
opts_extend = { "sources.default" }
|
||||||
|
|||||||
@@ -26,19 +26,19 @@ success_symbol = "[](green bold)"
|
|||||||
error_symbol = "[](pink)"
|
error_symbol = "[](pink)"
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
format = "[]($style)[ $path](bg:base fg:lavender bold)[ ]($style)"
|
style = "bg:none fg:{{colors.outline_variant.default.hex}}"
|
||||||
style = "bg:none fg:base"
|
format = "[]($style)[ $path](bg:{{colors.outline_variant.default.hex}} fg:{{colors.primary.default.hex}})[ ]($style)"
|
||||||
truncation_length = 3
|
truncation_length = 3
|
||||||
truncate_to_repo=false
|
truncate_to_repo=false
|
||||||
|
|
||||||
[git_branch]
|
[git_branch]
|
||||||
format = "[]($style)[[ ](bg:base fg:green bold)$branch](bg:base fg:lavender)[ ]($style)"
|
style = "bg:none fg:{{colors.outline_variant.default.hex}}"
|
||||||
style = "bg:none fg:base"
|
format = "[]($style)[[ ](bg:{{colors.outline_variant.default.hex}} fg:{{colors.primary.default.hex}})$branch](bg:{{colors.outline_variant.default.hex}} fg:{{colors.primary.default.hex}})[ ]($style)"
|
||||||
|
|
||||||
[git_status]
|
[git_status]
|
||||||
# $all status$ahead_behind
|
# $all status$ahead_behind
|
||||||
format = "[]($style)[$all_status$ahead_behind](bg:base fg:yellow)[ ]($style)"
|
style = "bg:none fg:{{colors.outline_variant.default.hex}}"
|
||||||
style = "bg:none fg:base"
|
format = "[]($style)[$all_status$ahead_behind](bg:{{colors.outline_variant.default.hex}} fg:{{colors.primary.default.hex}})[ ]($style)"
|
||||||
conflicted = "="
|
conflicted = "="
|
||||||
ahead = "⇡${count}"
|
ahead = "⇡${count}"
|
||||||
behind = "⇣${count}"
|
behind = "⇣${count}"
|
||||||
@@ -54,14 +54,9 @@ deleted = "${count}"
|
|||||||
[cmd_duration]
|
[cmd_duration]
|
||||||
min_time = 1
|
min_time = 1
|
||||||
# duration & style
|
# duration & style
|
||||||
format = "[]($style)[$duration](bg:base fg:text)[ ]($style)"
|
style = "bg:none fg:{{colors.outline_variant.default.hex}}"
|
||||||
|
format = "[]($style)[$duration](bg:{{colors.outline_variant.default.hex}} fg:{{colors.primary.default.hex}})[]($style)"
|
||||||
disabled = false
|
disabled = false
|
||||||
style = "bg:none fg:base"
|
|
||||||
|
|
||||||
[sudo]
|
|
||||||
format = "[]($style)[$symbol](bg:base fg:text)[ ]($style)"
|
|
||||||
style = 'bg:none fg:base'
|
|
||||||
|
|
||||||
|
|
||||||
[palettes.catppuccin_mocha]
|
[palettes.catppuccin_mocha]
|
||||||
rosewater = "#f5e0dc"
|
rosewater = "#f5e0dc"
|
||||||
@@ -90,4 +85,3 @@ surface0 = "#313244"
|
|||||||
base = "#1e1e2e"
|
base = "#1e1e2e"
|
||||||
mantle = "#181825"
|
mantle = "#181825"
|
||||||
crust = "#11111b"
|
crust = "#11111b"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user