First commit
This commit is contained in:
parent
c1e9169c7f
commit
cb2da67191
1 changed files with 8 additions and 7 deletions
|
@ -1,21 +1,21 @@
|
||||||
HOME = os.getenv("HOME")
|
HOME = os.getenv("HOME")
|
||||||
|
|
||||||
-- Configure the clipboard to access the "+ and "* registers
|
-- Configure the clipboard to access the "+ and "* registers
|
||||||
-- (not sure why I need this now and didn't before)
|
-- N.B. JavaScript copy buttons on the web do not necessarily work as expected
|
||||||
vim.opt.clipboard = "unnamedplus,unnamed"
|
vim.opt.clipboard = "unnamedplus,unnamed"
|
||||||
|
|
||||||
-- Spaces indentation
|
-- Spaces indentation
|
||||||
vim.opt.expandtab = true
|
vim.opt.expandtab = true -- converts tabs to spaces
|
||||||
vim.opt.tabstop = 2
|
vim.opt.tabstop = 2 -- tab equals 2 spaces
|
||||||
vim.opt.shiftwidth = 2
|
vim.opt.shiftwidth = 2 -- indent size in characters
|
||||||
|
|
||||||
-- Show whitespace
|
-- Show whitespace (:list)
|
||||||
vim.opt.listchars = "eol:¬,tab:>-,trail:~,extends:>,precedes:<,space:·"
|
vim.opt.listchars = "eol:¬,tab:>-,trail:~,extends:>,precedes:<,space:·"
|
||||||
|
|
||||||
-- Show line numbers
|
-- Show line numbers
|
||||||
vim.opt.number = true
|
vim.opt.number = true
|
||||||
|
|
||||||
-- Default: split right
|
-- Vertically splitting a window (:vsplit) places new window to the right
|
||||||
vim.opt.splitright = true
|
vim.opt.splitright = true
|
||||||
|
|
||||||
-- Highlight cursor line
|
-- Highlight cursor line
|
||||||
|
@ -32,7 +32,8 @@ vim.opt.termguicolors = true
|
||||||
vim.opt.scrolloff = 5
|
vim.opt.scrolloff = 5
|
||||||
|
|
||||||
-- netrw
|
-- netrw
|
||||||
vim.g.netrw_winsize = 25
|
-- This is the workspace file explorer
|
||||||
|
vim.g.netrw_winsize = 25 -- width of the file explorer
|
||||||
vim.g.netrw_liststyle = 3 -- tree style listing
|
vim.g.netrw_liststyle = 3 -- tree style listing
|
||||||
|
|
||||||
-- Escape exits terminal mode
|
-- Escape exits terminal mode
|
||||||
|
|
Loading…
Reference in a new issue