Public Access
blink update
This commit is contained in:
@@ -18,6 +18,9 @@ map("n", "K", function() vim.lsp.buf.hover({ max_width = 80 }) end,
|
|||||||
map("n", "<leader>gf",
|
map("n", "<leader>gf",
|
||||||
function() require("conform").format({ lsp_format = "fallback" }) end,
|
function() require("conform").format({ lsp_format = "fallback" }) end,
|
||||||
{ desc = "LSP: format buffer" })
|
{ desc = "LSP: format buffer" })
|
||||||
|
map("x", "<leader>gs",
|
||||||
|
function() require("conform").format({ lsp_format = "fallback" }) end,
|
||||||
|
{ desc = "LSP: format selection" })
|
||||||
map("n", "<leader>gd", vim.lsp.buf.definition, { desc = "LSP: go to definition" })
|
map("n", "<leader>gd", vim.lsp.buf.definition, { desc = "LSP: go to definition" })
|
||||||
map("n", "<leader>gD", vim.lsp.buf.declaration, { desc = "LSP: go to declaration" })
|
map("n", "<leader>gD", vim.lsp.buf.declaration, { desc = "LSP: go to declaration" })
|
||||||
|
|
||||||
|
|||||||
+10
-5
@@ -9,7 +9,8 @@ vim.pack.add({
|
|||||||
{ src = "https://github.com/neovim/nvim-lspconfig" },
|
{ src = "https://github.com/neovim/nvim-lspconfig" },
|
||||||
{ src = "https://github.com/nvim-treesitter/nvim-treesitter", version = "main" },
|
{ src = "https://github.com/nvim-treesitter/nvim-treesitter", version = "main" },
|
||||||
{ src = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects", version = "main" },
|
{ src = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects", version = "main" },
|
||||||
{ src = "https://github.com/Saghen/blink.cmp", version = "v1.7.0" },
|
{ src = "https://github.com/Saghen/blink.cmp" },
|
||||||
|
{ src = "https://github.com/saghen/blink.lib" },
|
||||||
{ src = "https://github.com/mason-org/mason.nvim" },
|
{ src = "https://github.com/mason-org/mason.nvim" },
|
||||||
{ src = "https://github.com/nvim-lualine/lualine.nvim.git" },
|
{ src = "https://github.com/nvim-lualine/lualine.nvim.git" },
|
||||||
{ src = "https://github.com/chomosuke/typst-preview.nvim" },
|
{ src = "https://github.com/chomosuke/typst-preview.nvim" },
|
||||||
@@ -48,6 +49,13 @@ require("mini.jump2d").setup({
|
|||||||
mappings = { start_jumping = "<leader>j" },
|
mappings = { start_jumping = "<leader>j" },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local cmp = require('blink.cmp')
|
||||||
|
cmp.build():pwait()
|
||||||
|
cmp.setup({
|
||||||
|
keymap = {
|
||||||
|
preset = "super-tab" }
|
||||||
|
})
|
||||||
|
|
||||||
local prettier = { "prettierd", "prettier", stop_after_first = true }
|
local prettier = { "prettierd", "prettier", stop_after_first = true }
|
||||||
require("conform").setup({
|
require("conform").setup({
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
@@ -67,8 +75,7 @@ require("conform").setup({
|
|||||||
formatters = {
|
formatters = {
|
||||||
prettier = { prepend_args = { "--tab-width", "4", "--use-tabs", "false" } },
|
prettier = { prepend_args = { "--tab-width", "4", "--use-tabs", "false" } },
|
||||||
prettierd = { env = { PRETTIERD_DEFAULT_CONFIG = vim.fn.expand("~/.config/nvim/.prettierrc.json") } },
|
prettierd = { env = { PRETTIERD_DEFAULT_CONFIG = vim.fn.expand("~/.config/nvim/.prettierrc.json") } },
|
||||||
},
|
}
|
||||||
format_on_save = { timeout_ms = 2000, lsp_format = "fallback" },
|
|
||||||
})
|
})
|
||||||
|
|
||||||
require("render-markdown").setup({
|
require("render-markdown").setup({
|
||||||
@@ -197,8 +204,6 @@ vim.keymap.set("x", "<leader>cs", function() silicon_shot(false) end,
|
|||||||
|
|
||||||
require("lualine").setup({ options = { theme = "gruvbox_dark" } })
|
require("lualine").setup({ options = { theme = "gruvbox_dark" } })
|
||||||
|
|
||||||
require("blink.cmp").setup({ keymap = { preset = "super-tab" } })
|
|
||||||
|
|
||||||
-- Treesitter (main branch: no configs.setup; install parsers manually)
|
-- Treesitter (main branch: no configs.setup; install parsers manually)
|
||||||
require("nvim-treesitter").install({
|
require("nvim-treesitter").install({
|
||||||
"lua", "vim", "vimdoc", "bash", "c", "cpp", "rust", "python",
|
"lua", "vim", "vimdoc", "bash", "c", "cpp", "rust", "python",
|
||||||
|
|||||||
Reference in New Issue
Block a user