Compare commits
No commits in common. "c520d3ec26b024bb129fa0aab10b176ac5dd3d90" and "c1e9169c7fffeacead9f5fd3f638ad630f080a62" have entirely different histories.
c520d3ec26
...
c1e9169c7f
1 changed files with 10 additions and 8 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
|
||||||
-- N.B. JavaScript copy buttons on the web do not necessarily work as expected
|
-- (not sure why I need this now and didn't before)
|
||||||
vim.opt.clipboard = "unnamedplus,unnamed"
|
vim.opt.clipboard = "unnamedplus,unnamed"
|
||||||
|
|
||||||
-- Spaces indentation
|
-- Spaces indentation
|
||||||
vim.opt.expandtab = true -- converts tabs to spaces
|
vim.opt.expandtab = true
|
||||||
vim.opt.tabstop = 2 -- tab equals 2 spaces
|
vim.opt.tabstop = 2
|
||||||
vim.opt.shiftwidth = 2 -- indent size in characters
|
vim.opt.shiftwidth = 2
|
||||||
|
|
||||||
-- Show whitespace (:list)
|
-- Show whitespace
|
||||||
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
|
||||||
|
|
||||||
-- Vertically splitting a window (:vsplit) places new window to the right
|
-- Default: split right
|
||||||
vim.opt.splitright = true
|
vim.opt.splitright = true
|
||||||
|
|
||||||
-- Highlight cursor line
|
-- Highlight cursor line
|
||||||
|
@ -32,8 +32,7 @@ vim.opt.termguicolors = true
|
||||||
vim.opt.scrolloff = 5
|
vim.opt.scrolloff = 5
|
||||||
|
|
||||||
-- netrw
|
-- netrw
|
||||||
-- This is the workspace file explorer
|
vim.g.netrw_winsize = 25
|
||||||
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
|
||||||
|
@ -356,6 +355,9 @@ require('lspsaga').setup()
|
||||||
-- Switch syntax highlighting on
|
-- Switch syntax highlighting on
|
||||||
vim.cmd("syntax enable")
|
vim.cmd("syntax enable")
|
||||||
|
|
||||||
|
-- Set color scheme
|
||||||
|
vim.cmd("colorscheme dracula")
|
||||||
|
|
||||||
-- Temporary file locations
|
-- Temporary file locations
|
||||||
vim.opt.backupdir = ".backup/," .. HOME .. "/.backup/,/tmp//"
|
vim.opt.backupdir = ".backup/," .. HOME .. "/.backup/,/tmp//"
|
||||||
vim.opt.directory = ".swp/," .. HOME .. "/.swp/,/tmp//"
|
vim.opt.directory = ".swp/," .. HOME .. "/.swp/,/tmp//"
|
||||||
|
|
Loading…
Reference in a new issue