aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorpml68 <tutorialmester@gmail.com>2024-04-16 22:58:08 +0200
committerpml68 <tutorialmester@gmail.com>2024-04-16 22:58:08 +0200
commitebda592777acf7324ca2622d9feb18c9d7afbe59 (patch)
treecb6e44308e8f8e625c63b394b55836178c091724 /lua
parentfeat: switch to Rosé Pine theme (diff)
downloadnvim-ebda592777acf7324ca2622d9feb18c9d7afbe59.tar.gz
feat: add auto-indent remap, treesitter as code fold source
Diffstat (limited to 'lua')
-rw-r--r--lua/pml68/init.lua8
-rw-r--r--lua/pml68/plugins.lua2
-rw-r--r--lua/pml68/remap.lua1
3 files changed, 7 insertions, 4 deletions
diff --git a/lua/pml68/init.lua b/lua/pml68/init.lua
index ea53600..f6daab0 100644
--- a/lua/pml68/init.lua
+++ b/lua/pml68/init.lua
@@ -1,16 +1,18 @@
require("pml68.remap")
require("pml68.lazy")
--- vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
--- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
-
vim.opt.rnu = true
vim.opt.nu = true
vim.opt.shiftwidth = 2
vim.opt.tabstop = 2
+vim.opt.hlsearch = true
+vim.opt.incsearch = true
vim.opt.clipboard = "unnamedplus"
vim.opt.termguicolors = true
vim.opt.whichwrap:append "<>[]hl"
+
+vim.opt.foldmethod = "expr"
+vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
diff --git a/lua/pml68/plugins.lua b/lua/pml68/plugins.lua
index 5c914fb..07f2e4c 100644
--- a/lua/pml68/plugins.lua
+++ b/lua/pml68/plugins.lua
@@ -1,7 +1,7 @@
local plugins = {
-- Colorizer
{
- "NvChad/nvim-colorizer.lua",
+ "NvChad/nvim-colorizer.lua",
event = "BufReadPost",
config = function()
require("colorizer").setup()
diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua
index f3bf9ff..a1c1254 100644
--- a/lua/pml68/remap.lua
+++ b/lua/pml68/remap.lua
@@ -6,6 +6,7 @@ vim.keymap.set("n", "<leader>cp", ":!xclip -sel clip -target image/png -i 2024*.
vim.keymap.set("n", "<leader>u", "<cmd>UndotreeToggle<CR>")
vim.keymap.set("n", "<leader>n", "<cmd> set nu! <CR>")
vim.keymap.set("n", "<leader>rn", "<cmd> set rnu! <CR>")
+vim.keymap.set("n", "<leader>fo", "=ap")
-- VimTex
vim.keymap.set("n", "<leader>ll", "<cmd>VimtexCompile<CR>")