update nvim config
This commit is contained in:
@@ -10,18 +10,38 @@ return {
|
||||
|
||||
{ import = "astrocommunity.colorscheme.catppuccin" },
|
||||
-- { import = "astrocommunity.editing-support.yanky-nvim" },
|
||||
{ import = "astrocommunity.diagnostics.trouble-nvim"},
|
||||
{ import = "astrocommunity.diagnostics.trouble-nvim" },
|
||||
{ import = "astrocommunity.editing-support.todo-comments-nvim" },
|
||||
{ import = "astrocommunity.editing-support.multicursors-nvim" },
|
||||
{ import = "astrocommunity.lsp.lsp-signature-nvim" },
|
||||
-- { import = "astrocommunity.lsp.lsp-signature-nvim" },
|
||||
{ import = "astrocommunity.lsp.inc-rename-nvim" },
|
||||
{ import = "astrocommunity.markdown-and-latex.glow-nvim" },
|
||||
-- { import = "astrocommunity.motion.flash-nvim" },
|
||||
{ import = "astrocommunity.scrolling.mini-animate" },
|
||||
{ import = "astrocommunity.syntax.vim-sandwich" },
|
||||
{ import = "astrocommunity.test.neotest" },
|
||||
{ import = "astrocommunity.utility.noice-nvim" },
|
||||
-- { import = "astrocommunity.workflow.hardtime-nvim" },
|
||||
|
||||
{ import = "astrocommunity.motion.nvim-surround" },
|
||||
{
|
||||
"kylechui/nvim-surround",
|
||||
opts = {
|
||||
keymaps = {
|
||||
normal = '<leader>sa',
|
||||
normal_cur = false,
|
||||
normal_line = false,
|
||||
normal_cur_line = false,
|
||||
visual = '<leader>s',
|
||||
visual_line = '<leader>S',
|
||||
delete = '<leader>sd',
|
||||
change = '<leader>sr',
|
||||
},
|
||||
aliases = {
|
||||
['i'] = ']', -- Index
|
||||
['r'] = ')', -- Round
|
||||
['b'] = '}', -- Brackets
|
||||
},
|
||||
},
|
||||
},
|
||||
{ import = "astrocommunity.completion.copilot-lua" },
|
||||
{ -- further customize the options set by the community
|
||||
"zbirenbaum/copilot.lua",
|
||||
|
||||
@@ -11,11 +11,11 @@ return {
|
||||
-- Configure core features of AstroNvim
|
||||
features = {
|
||||
large_buf = { size = 1024 * 500, lines = 10000 }, -- set global limits for large files for disabling features like treesitter
|
||||
autopairs = true, -- enable autopairs at start
|
||||
cmp = true, -- enable completion at start
|
||||
diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = on)
|
||||
highlighturl = true, -- highlight URLs at start
|
||||
notifications = true, -- enable notifications at start
|
||||
autopairs = true, -- enable autopairs at start
|
||||
cmp = true, -- enable completion at start
|
||||
diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = on)
|
||||
highlighturl = true, -- highlight URLs at start
|
||||
notifications = true, -- enable notifications at start
|
||||
},
|
||||
-- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on
|
||||
diagnostics = {
|
||||
@@ -24,14 +24,14 @@ return {
|
||||
},
|
||||
-- vim options can be configured here
|
||||
options = {
|
||||
opt = { -- vim.opt.<key>
|
||||
opt = { -- vim.opt.<key>
|
||||
relativenumber = true, -- sets vim.opt.relativenumber
|
||||
number = true, -- sets vim.opt.number
|
||||
spell = false, -- sets vim.opt.spell
|
||||
signcolumn = "auto", -- sets vim.opt.signcolumn to auto
|
||||
wrap = false, -- sets vim.opt.wrap
|
||||
number = true, -- sets vim.opt.number
|
||||
spell = false, -- sets vim.opt.spell
|
||||
signcolumn = "auto", -- sets vim.opt.signcolumn to auto
|
||||
wrap = false, -- sets vim.opt.wrap
|
||||
},
|
||||
g = { -- vim.g.<key>
|
||||
g = { -- vim.g.<key>
|
||||
-- configure global vim variables (vim.g)
|
||||
-- NOTE: `mapleader` and `maplocalleader` must be set in the AstroNvim opts or before `lazy.setup`
|
||||
-- This can be found in the `lua/lazy_setup.lua` file
|
||||
@@ -53,7 +53,17 @@ return {
|
||||
-- function() require("astrocore.buffer").nav(-(vim.v.count > 0 and vim.v.count or 1)) end,
|
||||
-- desc = "Previous buffer",
|
||||
-- },
|
||||
["<C-j>"] = { "<C-d>", desc = "Scroll half down" },
|
||||
["<C-k>"] = { "<C-u>", desc = "Scroll half up" },
|
||||
|
||||
["<leader>sw"] = { "<leader>saiw", desc = "Surround word", remap = true },
|
||||
["<Leader>sW"] = { "<leader>saiW", desc = "Surround Word", remap = true },
|
||||
["<Esc>"] = {
|
||||
function()
|
||||
require("notify").dismiss({ silent = true, pending = true })
|
||||
end,
|
||||
desc = "Dismiss notifications",
|
||||
},
|
||||
-- mappings seen under group name "Buffer"
|
||||
["<leader>bn"] = { "<cmd>tabnew<cr>", desc = "New tab" },
|
||||
["<Leader>bD"] = {
|
||||
|
||||
@@ -10,16 +10,16 @@ return {
|
||||
opts = {
|
||||
-- Configuration table of features provided by AstroLSP
|
||||
features = {
|
||||
autoformat = true, -- enable or disable auto formatting on start
|
||||
codelens = true, -- enable/disable codelens refresh on start
|
||||
inlay_hints = false, -- enable/disable inlay hints on start
|
||||
autoformat = true, -- enable or disable auto formatting on start
|
||||
codelens = true, -- enable/disable codelens refresh on start
|
||||
inlay_hints = false, -- enable/disable inlay hints on start
|
||||
semantic_tokens = true, -- enable/disable semantic token highlighting
|
||||
},
|
||||
-- customize lsp formatting options
|
||||
formatting = {
|
||||
-- control auto formatting on save
|
||||
format_on_save = {
|
||||
enabled = true, -- enable or disable format on save globally
|
||||
enabled = true, -- enable or disable format on save globally
|
||||
allow_filetypes = { -- enable format on save for specified filetypes only
|
||||
-- "go",
|
||||
},
|
||||
@@ -46,15 +46,15 @@ return {
|
||||
config = {
|
||||
-- clangd = { capabilities = { offsetEncoding = "utf-8" } },
|
||||
zls = {
|
||||
cmd = {"zls"};
|
||||
filetypes = {"zig"};
|
||||
cmd = { "zls" },
|
||||
filetypes = { "zig" },
|
||||
},
|
||||
clangd = {
|
||||
cmd = {
|
||||
"clangd",
|
||||
"--offset-encoding=utf-16",
|
||||
},
|
||||
filetypes = {"c", "cpp", "objc", "objcpp"},
|
||||
filetypes = { "c", "cpp", "objc", "objcpp" },
|
||||
},
|
||||
},
|
||||
-- customize how language servers are attached
|
||||
|
||||
Reference in New Issue
Block a user