From 57331238c20775916068580aff7d46968c45d575 Mon Sep 17 00:00:00 2001 From: coast Date: Thu, 15 Oct 2026 04:35:38 +0330 Subject: new nvim changes --- nvim/lua/config.lua | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'nvim/lua/config.lua') diff --git a/nvim/lua/config.lua b/nvim/lua/config.lua index 3fbccbd..2100a6c 100755 --- a/nvim/lua/config.lua +++ b/nvim/lua/config.lua @@ -4,6 +4,11 @@ local g = vim.g --filetypes vim.cmd("autocmd BufRead,BufNewFile *.m set filetype=objc") +vim.filetype.add({ + filename = { + ["cgitrc"] = "dosini", + }, +}) g.mapleader = " " @@ -23,6 +28,9 @@ opt.fillchars = "eob: " --g.loaded_netrw = 1 --g.loaded_netrwPlugin = 1 +vim.g.netrw_liststyle = 3 + +vim.cmd("let g:netrw_banner = 0") opt.termguicolors = true @@ -33,9 +41,9 @@ opt.shell = "/usr/bin/zsh" vim.lsp.handlers["textDocument/hover"] = function(err, result, ctx, config) - config = config or {} - config.border = "single" - return vim.lsp.handlers.hover(err, result, ctx, config) + config = config or {} + config.border = "single" + return vim.lsp.handlers.hover(err, result, ctx, config) end vim.diagnostic.config({ float = { border = "single" } }) @@ -82,8 +90,16 @@ map("n", "ff", builtin.find_files, {}) map("n", "fg", builtin.live_grep, {}) map("n", "fb", builtin.buffers, {}) map("n", "fh", builtin.help_tags, {}) -local treeapi = require("nvim-tree.api") -map("n", "e", treeapi.tree.toggle, {}) +--local treeapi = require("nvim-tree.api") +--map("n", "e", treeapi.tree.toggle, {}) map("n", "", 'lua require("FTerm").toggle()') map("t", "", 'lua require("FTerm").toggle()') + +map("n", "n", "nzzzv") +map("n", "n", "Nzzzv") +map("n", "<", "", ">gv", opts) +map("i", "", "") +map("n", "", ":nohl", { desc = "Clear search hl", silent = true }) +map("n", "x", "_x", opts) -- cgit v1.3