tmp
This commit is contained in:
parent
e3d3ab6680
commit
9c1281ef4f
7 changed files with 93 additions and 0 deletions
6
lua/config/autocmd.lua
Normal file
6
lua/config/autocmd.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
pattern = "*",
|
||||
callback = function(args)
|
||||
require("conform").format({ bufnr = args.buf })
|
||||
end,
|
||||
})
|
|
@ -10,6 +10,13 @@ vim.opt.nu = true
|
|||
vim.cmd([[set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<,space:•]])
|
||||
vim.keymap.set("n", "<leader>hc", ":set list!<CR>", { silent = true })
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
vim.keymap.set("n", ".", ":", {})
|
||||
|
||||
vim.keymap.set("i", "jk", "", {})
|
||||
|
||||
>>>>>>> c43d072 (tmp)
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
vim.opt.hlsearch = false
|
||||
|
|
12
lua/plugins/conformer.lua
Normal file
12
lua/plugins/conformer.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
"stevearc/conform.nvim",
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
js = { "prettierd" },
|
||||
html = { "prettierd" },
|
||||
c = { "clang-format" },
|
||||
cpp = { "clang-format" },
|
||||
},
|
||||
},
|
||||
}
|
4
lua/plugins/image.lua
Normal file
4
lua/plugins/image.lua
Normal file
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
"3rd/image.nvim",
|
||||
opts = {},
|
||||
}
|
33
lua/plugins/rainbow_parentheses.lua
Normal file
33
lua/plugins/rainbow_parentheses.lua
Normal file
|
@ -0,0 +1,33 @@
|
|||
return {
|
||||
"HiPhish/rainbow-delimiters.nvim",
|
||||
lazy = false,
|
||||
init = function()
|
||||
-- This module contains a number of default definitions
|
||||
local rainbow_delimiters = require("rainbow-delimiters")
|
||||
|
||||
---@type rainbow_delimiters.config
|
||||
vim.g.rainbow_delimiters = {
|
||||
strategy = {
|
||||
[""] = rainbow_delimiters.strategy["global"],
|
||||
vim = rainbow_delimiters.strategy["local"],
|
||||
},
|
||||
query = {
|
||||
[""] = "rainbow-delimiters",
|
||||
lua = "rainbow-blocks",
|
||||
},
|
||||
priority = {
|
||||
[""] = 110,
|
||||
lua = 210,
|
||||
},
|
||||
highlight = {
|
||||
"RainbowDelimiterViolet",
|
||||
"RainbowDelimiterBlue",
|
||||
"RainbowDelimiterOrange",
|
||||
"RainbowDelimiterYellow",
|
||||
"RainbowDelimiterRed",
|
||||
"RainbowDelimiterGreen",
|
||||
"RainbowDelimiterCyan",
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue