Compare commits

...

2 Commits

Author SHA1 Message Date
n
bac67d89d7 added comment.nvim(?), and a few new mappings for neotree 2024-08-25 21:18:07 +01:00
n
6712e0c1e4 small updates 2024-08-25 21:17:07 +01:00
4 changed files with 40 additions and 25 deletions

4
lua/nat/lazy/comment.lua Normal file
View File

@ -0,0 +1,4 @@
return {
"numToStr/Comment.nvim",
opts = function() require("Comment").setup({ }) end
}

View File

@ -8,8 +8,8 @@ return {
}, },
config = function() config = function()
-- Disable on Windows -- Disable on Windows
if (package.config:sub(1,1) == "\\") then return end if (package.config:sub(1,1) == "\\") then return end
require('telescope').setup({}) require('telescope').setup({})
local builtin = require('telescope.builtin') local builtin = require('telescope.builtin')

View File

@ -1,34 +1,45 @@
vim.g.mapleader = "<Space>" vim.g.mapleader = " "
vim.opt.guicursor = "" local set = vim.opt
local HOME = "C:\\Users\\Nathan"
vim.opt.nu = true set.guicursor = ""
vim.opt.relativenumber = true
vim.opt.tabstop = 2 -- set.number = "relativenumber"
vim.opt.softtabstop = 2 set.relativenumber = true
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.smartindent = true set.tabstop = 2
set.softtabstop = 2
set.shiftwidth = 2
set.expandtab = true
vim.opt.wrap = false set.smartindent = true
vim.opt.swapfile = false set.wrap = false
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true
vim.opt.hlsearch = false set.swapfile = false
vim.opt.incsearch = true set.backup = false
set.undodir = HOME .. "/.vim/undodir"
set.undofile = true
vim.opt.termguicolors = true set.hlsearch = false
set.incsearch = true
vim.opt.scrolloff = 8 set.termguicolors = true
vim.opt.signcolumn = "yes"
vim.opt.isfname:append("@-@")
vim.opt.updatetime = 50 set.scrolloff = 8
set.signcolumn = "yes"
set.isfname:append("@-@")
vim.opt.colorcolumn = "80" set.updatetime = 50
set.colorcolumn = "80"
-- https://neovim.reddit.com/comments/xykklt/_/j4gxyqx
vim.keymap.set("n", "<C-_>", function()
require('Comment.api').toggle.linewise.current() end,
{ noremap = true, silent = true }
)
vim.keymap.set("n", "<leader>tt", function() vim.cmd [[Neotree left toggle]] end)
vim.keymap.set("n", "<leader>tf", function() vim.cmd [[Neotree float]] end)