46 lines
905 B
Lua
46 lines
905 B
Lua
vim.g.mapleader = " "
|
|
|
|
local set = vim.opt
|
|
local HOME = "C:\\Users\\Nathan"
|
|
|
|
set.guicursor = ""
|
|
|
|
-- set.number = "relativenumber"
|
|
set.relativenumber = true
|
|
|
|
set.tabstop = 2
|
|
set.softtabstop = 2
|
|
set.shiftwidth = 2
|
|
set.expandtab = true
|
|
|
|
set.smartindent = true
|
|
|
|
set.wrap = false
|
|
|
|
set.swapfile = false
|
|
set.backup = false
|
|
set.undodir = HOME .. "/.vim/undodir"
|
|
set.undofile = true
|
|
|
|
set.hlsearch = false
|
|
set.incsearch = true
|
|
|
|
set.termguicolors = true
|
|
|
|
set.scrolloff = 8
|
|
set.signcolumn = "yes"
|
|
set.isfname:append("@-@")
|
|
|
|
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)
|