Public Access
barbar keymaps
This commit is contained in:
+13
-6
@@ -3,9 +3,9 @@ vim.pack.add({
|
||||
{ src = "https://github.com/stevearc/oil.nvim" },
|
||||
{ src = "https://github.com/echasnovski/mini.pick" },
|
||||
{ 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/Saghen/blink.cmp", version = "v1.7.0" },
|
||||
{ src = "https://github.com/Saghen/blink.cmp", version = "v1.7.0" },
|
||||
{ src = "https://github.com/mason-org/mason.nvim" },
|
||||
{ src = "https://github.com/nvim-lualine/lualine.nvim.git" },
|
||||
{ src = "https://github.com/chomosuke/typst-preview.nvim" },
|
||||
@@ -25,6 +25,7 @@ vim.pack.add({
|
||||
{ src = "https://github.com/nvim-neotest/nvim-nio" },
|
||||
{ src = "https://github.com/rcarriga/nvim-dap-ui" },
|
||||
{ src = "https://github.com/michaelrommel/nvim-silicon" },
|
||||
{ src = "https://github.com/hat0uma/csvview.nvim.git" },
|
||||
})
|
||||
|
||||
pcall(vim.cmd.colorscheme, "gruvbox")
|
||||
@@ -34,7 +35,7 @@ vim.api.nvim_set_hl(0, "FlashLabel", { fg = "#1d2021", bg = "#fe8019", bold = tr
|
||||
for _, name in ipairs({
|
||||
"oil", "mini.pick", "mason", "typst-preview", "nvim-autopairs",
|
||||
"trouble", "gitsigns", "nvim-web-devicons", "barbar",
|
||||
"mini.ai", "nvim-ts-autotag", "todo-comments", "flash",
|
||||
"mini.ai", "nvim-ts-autotag", "todo-comments", "flash", "cssview",
|
||||
}) do
|
||||
pcall(function() require(name).setup() end)
|
||||
end
|
||||
@@ -53,6 +54,7 @@ require("conform").setup({
|
||||
json = prettier,
|
||||
markdown = prettier,
|
||||
yaml = prettier,
|
||||
haskell = { "fourmolu" },
|
||||
},
|
||||
formatters = {
|
||||
prettier = { prepend_args = { "--tab-width", "4", "--use-tabs", "false" } },
|
||||
@@ -140,9 +142,14 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||
|
||||
-- TS textobjects
|
||||
local tso = require("nvim-treesitter-textobjects.select")
|
||||
local textobj = { af = "@function.outer", ["if"] = "@function.inner",
|
||||
ac = "@class.outer", ic = "@class.inner",
|
||||
al = "@loop.outer", il = "@loop.inner" }
|
||||
local textobj = {
|
||||
af = "@function.outer",
|
||||
["if"] = "@function.inner",
|
||||
ac = "@class.outer",
|
||||
ic = "@class.inner",
|
||||
al = "@loop.outer",
|
||||
il = "@loop.inner"
|
||||
}
|
||||
for lhs, query in pairs(textobj) do
|
||||
vim.keymap.set({ "x", "o" }, lhs,
|
||||
function() tso.select_textobject(query, "textobjects") end)
|
||||
|
||||
Reference in New Issue
Block a user