86 lines
2.4 KiB
Lua
86 lines
2.4 KiB
Lua
require("bootstrap")
|
|
require("plugins")
|
|
vim.cmd([[colorscheme gruvbox]])
|
|
-- Settings Start Here --
|
|
|
|
-- Main
|
|
vim.g.filetype = "plugin on"
|
|
vim.o.foldenable = true
|
|
vim.o.foldmethod = "indent"
|
|
vim.o.foldlevel = 2
|
|
vim.o.splitright = true
|
|
vim.o.compatible = false
|
|
vim.o.autochdir = true
|
|
vim.bo.autoindent = true
|
|
vim.bo.expandtab = true
|
|
vim.bo.smartindent = true
|
|
vim.o.guicursor = "n-v-c-sm:block,i-ci-ve:ver25,r-cr-o:hor20"
|
|
vim.cmd("let &t_ut=''")
|
|
vim.opt.shortmess:append("c")
|
|
vim.o.ts = 8
|
|
vim.o.sw = 4
|
|
vim.o.wrap = "smoothscroll"
|
|
vim.o.softtabstop = 0
|
|
vim.o.smarttab = true
|
|
vim.o.cmdheight = 2
|
|
vim.o.completeopt = "menuone,noinsert,noselect"
|
|
vim.o.hidden = true
|
|
vim.o.mouse = "a"
|
|
vim.o.showtabline = 1
|
|
vim.o.splitbelow = true
|
|
vim.opt.termguicolors = true
|
|
vim.o.updatetime = 100
|
|
vim.wo.cursorline = true
|
|
vim.o.cursorcolumn = true
|
|
vim.o.number = true
|
|
vim.o.relativenumber = true
|
|
vim.o.timeoutlen = 1000
|
|
vim.o.timeout = true
|
|
vim.g.neovide_cursor_vfx_mode = "torpedo"
|
|
|
|
-- Diagnostics
|
|
vim.g.diagnostic_enable_popup_while_jump = 1
|
|
vim.g.diagnostic_enable_virtual_text = 0
|
|
|
|
-- SLIME
|
|
|
|
-- Why use more than two multiplexing utilities lmao
|
|
if os.getenv("ZELLIJ_SESSION_NAME") ~= nil then
|
|
vim.g.slime_target = "zellij"
|
|
elseif os.getenv("TERM") == "xterm-kitty" or os.getenv("TERM_PROGRAM") ~= "tmux" then
|
|
vim.g.slime_target = "kitty"
|
|
elseif os.getenv("TERM_PROGRAM") == "tmux" or os.getenv("TERM") ~= "xterm-kitty" then
|
|
vim.g.slime_target = "tmux"
|
|
else
|
|
-- Assume only neovim terminal is the only way
|
|
vim.g.slime_target = "neovim"
|
|
end
|
|
|
|
-- Python
|
|
if vim.fn.getenv("OS") == "Windows_NT" then
|
|
-- set shell in windows
|
|
vim.o.shell = "pwsh-preview.cmd" -- I use powershell-preview so you might want to edit this
|
|
local python3_path = vim.fn.system({
|
|
vim.o.shell,
|
|
"-Command",
|
|
'"(Get-Command',
|
|
'python3).path"',
|
|
})
|
|
local python2_path = vim.fn.system({
|
|
vim.o.shell,
|
|
"-Command",
|
|
'"(Get-Command',
|
|
'python2).path"',
|
|
})
|
|
vim.g.python3_host_prog = python3_path
|
|
vim.g.python_host_prog = python2_path
|
|
vim.opt.clipboard = vim.opt.clipboard + "unnamedplus"
|
|
vim.opt.autowrite = true
|
|
else
|
|
vim.o.shell = vim.fn.getenv("SHELL")
|
|
vim.g.python3_host_prog = vim.fn.exepath("python3")
|
|
vim.g.python_host_prog = vim.fn.exepath("python") -- python2 is dead dream on bro
|
|
vim.g.ruby_host_prog = vim.fn.exepath("ruby")
|
|
end
|
|
|