fix: add more vim.opt settings

pull/247/head
Garrett Dawson 2 years ago
parent b9217c37ba
commit 8cac12d06d

@ -1,3 +1,20 @@
local set = vim.opt
set.colorcolumn = "80,120"
set.cursorline = true
set.expandtab = true
set.list = true
set.swapfile = false
set.writebackup = false
set.wrap = false
-- vim.o.sessionoptions = "resize,winpos,winsize,buffers,tabpages,folds,curdir,help"
set.shiftwidth = 2
-- vim.o.showmode = true
set.splitbelow = true
set.splitright = true
set.tabstop = 2
set.textwidth = 80
-- prev/next tab
vim.keymap.set('n', 'H', 'gT')
vim.keymap.set('n', 'L', 'gt')

@ -46,9 +46,9 @@ return {
-- Tsserver usually works poorly. Sorry you work with bad languages
-- You can remove this line if you know what you're doing :)
-- if client.name == 'tsserver' then
-- return
-- end
if client.name == 'tsserver' then
return
end
-- Create an autocmd that will run *before* we save the buffer.
-- Run the formatting command for the LSP that has just attached.

Loading…
Cancel
Save