Files
nvim_dotfiles/lua/settings.lua
Erik Mertens af66b3c56b - updated to vue_ls 3.0
- fixed lua_ls lua version changed to 'LuaJIT'
2025-08-04 16:04:47 +02:00

90 lines
2.4 KiB
Lua

vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
vim.opt.breakindent = true
vim.opt.signcolumn = 'yes'
vim.opt.splitright = true
vim.opt.splitbelow = true
vim.opt.list = true
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '' }
vim.cmd 'set formatoptions+=r'
vim.cmd 'set formatoptions+=]'
vim.cmd 'set diffopt+=iwhite'
vim.o.hidden = true
vim.o.tabstop = 4;
vim.o.shiftwidth = 4;
vim.o.smarttab = true
vim.wo.number = true
vim.wo.relativenumber = true
vim.o.scrolloff = 6
vim.o.sidescrolloff = 8
vim.bo.autoindent = true
vim.bo.smartindent = true
vim.o.title = true
vim.o.hlsearch = true
vim.o.inccommand = "nosplit"
vim.o.inccommand = "nosplit"
vim.o.mouse = "a"
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.cursorline = false
vim.o.pumblend = 30
vim.o.cmdheight = 0
vim.o.showcmdloc = "statusline"
vim.o.statusline = "%<%f\\ %h%m%r%=%-14.(%l,%c%V%)\\ %P"
vim.o.expandtab = true
vim.o.laststatus = 3
vim.o.breakindent = true
vim.o.showbreak = "=>"
-- Netrw settings
vim.g.netrw_keepdir = 0
vim.g.netrw_winsize = 25
vim.g.netrw_banner = 0
vim.g.netrw_localcopydircmd = "cp -r"
vim.diagnostic.config({
severity_sort = true,
signs = {
text = {
[vim.diagnostic.severity.ERROR] = "",
[vim.diagnostic.severity.WARN] = "",
[vim.diagnostic.severity.HINT] = "💡",
[vim.diagnostic.severity.INFO] = "",
}
},
virtual_lines = { current_line = true }
})
if vim.g.vscode then
else
-- Keymaps
-- Copy
vim.api.nvim_set_keymap("n", "<C-v>", '"+gp', { noremap = true })
vim.api.nvim_set_keymap("i", "<C-v>", '<Esc>"+gp', { noremap = true })
-- Paste
vim.api.nvim_set_keymap("v", "<C-c>", '"+y', { noremap = true })
vim.api.nvim_set_keymap("n", "<C-c>", '"+yy', { noremap = true })
end
-- terminal mode
if vim.uv.os_gethostname() == "LPEDV04" then
-- vim.o
-- if os.execute("set PATH=C:\\Users\\mertens\\AppData\\Local\\Programs\\jdk\\bin;%PATH%") then
-- vim.notify("success")
-- else
-- vim.notify("failed")
-- end
-- vim.o.shell = [[C:\Users\mertens\AppData\Local\Programs\Git\bin\bash.exe]]
-- vim.o.shellcmdflag = "-s"
-- vim.api.nvim_set_keymap("t", "<Esc>", [[<C-\><C-n>]], { noremap = true, silent = true, desc = "Exit terminal mode" })
vim.o.backupdir = "C:\\Users\\mertens\\AppData\\Local\\nvim-data\\backup"
end