1
0

Compare commits

..

No commits in common. "e75c184a15e2f6206ca276ef1a69eeaa0d020dd1" and "74937605ef8333def7e5319758ef41e683410869" have entirely different histories.

19 changed files with 343 additions and 432 deletions

View File

@ -1,5 +0,0 @@
local tab_spacing = 2
vim.opt.tabstop = tab_spacing
vim.opt.softtabstop = tab_spacing
vim.opt.shiftwidth = tab_spacing
vim.opt_local.makeprg = 'msbuild .\\game.vcxproj /p:Configuration=Release /p:Platform=x64'

View File

@ -1,4 +0,0 @@
vim.keymap.set("n", "<space>pa", function()
package.loaded["php.artisan"] = nil
require("php.artisan").telescope_select_artisan()
end)

View File

@ -1,10 +0,0 @@
function ColorMyPencils(color)
color = color or "catppuccin"
vim.cmd.colorscheme(color)
-- make transparent BG
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
end
ColorMyPencils()

View File

@ -0,0 +1,10 @@
function ColorMyPencils(color)
color = color or "tokyonight"
vim.cmd.colorscheme(color)
-- make transparent BG
vim.api.nvim_set_hl(0, "Normal", {bg = "none"})
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none"})
end
ColorMyPencils()

View File

@ -1,4 +1,5 @@
require("barink.vim") require("barink.vim")
require("barink.keys")
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ vim.fn.system({
@ -11,14 +12,13 @@ if not vim.loop.fs_stat(lazypath) then
}) })
end end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
require("barink.keys") local opts = {
require("lazy").setup("barink.plugins" , { defaults = {
root = vim.fn.stdpath("data") .. "/lazy", -- directory where plugins will be installed lazy = false,
-- leave nil when passing the spec as the first argument to setup()
change_detection = {
-- automatically check for config file changes and reload the ui
enabled = false,
notify = true, -- get a notification when changes are found
}, },
change_detection = {
}) enabled = true,
notify = false,
},
}
require("lazy").setup("barink.plugins", opts)

View File

@ -13,62 +13,35 @@ vim.keymap.set('v', '<A-S-j>', ':m \'>+1<CR>gv=gv', { noremap = true })
vim.keymap.set('v', '<A-S-k>', ':m \'<-2<CR>gv=gv', {noremap = true}) vim.keymap.set('v', '<A-S-k>', ':m \'<-2<CR>gv=gv', {noremap = true})
-- Move lines while in normal mode -- Move lines while in normal mode
vim.keymap.set('n', '<A-S-j>', ':m .+1<CR>==', { noremap = true }) vim.keymap.set("n", "<A-S-j>", ":m .+1<CR>==", { noremap = true })
vim.keymap.set('n', '<A-S-k>', ':m .-2<CR>==', { noremap = true }) vim.keymap.set("n", "<A-S-k>", ":m .-2<CR>==", { noremap = true })
-- Move line in edit mode -- Move line in edit mode
vim.keymap.set('i', '<A-j>', ':m .+1<CR>==gi', { noremap = true }) vim.keymap.set("i", "<A-j>", ":m .+1<CR>==gi", { noremap = true })
vim.keymap.set('i', '<A-k>', ':m .-2<CR>==gi', { noremap = true }) vim.keymap.set("i", "<A-k>", ":m .-2<CR>==gi", { noremap = true })
-- Simplified split navigation
vim.keymap.set('n', '<C-h>', '<C-w><C-h>')
vim.keymap.set('n', '<C-j>', '<C-w><C-j>')
vim.keymap.set('n', '<C-k>', '<C-w><C-k>')
vim.keymap.set('n', '<C-l>', '<C-w><C-l>')
-- Diagnostics ! -- Diagnostics !
vim.keymap.set('n', '<C-T>', function() require('trouble').toggle('diagnostics') end) vim.keymap.set('n', '<C-T>', function() require('trouble').toggle() end )
vim.keymap.set('n', '<leader>d', function () vim.diagnostic.open_float() end ) vim.keymap.set('n', '<leader>d', function () vim.diagnostic.open_float() end )
vim.keymap.set('n', '<leader>dn', function () vim.diagnostic.goto_next() end ) vim.keymap.set('n', '<leader>dn', function () vim.diagnostic.goto_next() end )
vim.keymap.set('n', '<leader>dp', function () vim.diagnostic.goto_prev() end ) vim.keymap.set('n', '<leader>dp', function () vim.diagnostic.goto_prev() end )
vim.keymap.set('n', '<leader>ca', function() vim.lsp.buf.code_action() end) vim.keymap.set('n', '<C-d>', function () vim.lsp.buf.code_action() end)
-- Debugging -- Debugging
vim.keymap.set('n', '<leader>b', function() require('dap').toggle_breakpoint() end) vim.keymap.set("n", "<leader>sb", function()
vim.keymap.set('n', '<F5>', function() require("dap").toggle_breakpoint()
print("Start debug session")
require('dap').continue()
end) end)
vim.keymap.set('n', '<F6>', function() require('dap').step_over() end) vim.keymap.set("n", "<leader>db", function()
vim.keymap.set('n', '<F7>', function() require('dap').step_into() end) require("dapui").toggle()
end)
vim.keymap.set('n', '<leader>=', ":Gen Generate<CR>") vim.keymap.set("n", "<F5>", function()
require("dap").continue()
-- Easily hit escape in terminal mode. end)
vim.keymap.set("t", "<esc><esc>", "<c-\\><c-n>") vim.keymap.set("n", "<F6>", function()
require("dap").step_over()
-- Open a terminal at the bottom of the screen with a fixed height. end)
vim.keymap.set("n", ",st", function() vim.keymap.set("n", "<F7>", function()
vim.cmd.new() require("dap").step_into()
vim.cmd.wincmd "J"
vim.api.nvim_win_set_height(0, 12)
vim.wo.winfixheight = true
vim.cmd.term()
end) end)
-- Open quickfix list vim.keymap.set("n", "<leader>=", ":Gen Generate<CR>")
vim.keymap.set("n", "<M-k>", "<cmd>cnext<CR>zz")
vim.keymap.set("n", "<M-j>", "<cmd>cprev<CR>zz")
-- Go to next in location list
vim.keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz")
vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
-- Highlight on yank
vim.api.nvim_create_autocmd("TextYankPost", {
desc = "Highlight when yanking text ",
group = vim.api.nvim_create_augroup('barink', { clear = true }),
callback = function()
vim.highlight.on_yank()
end
})

View File

@ -2,7 +2,7 @@ return {
{ {
"stevearc/oil.nvim", "stevearc/oil.nvim",
opt = { opt = {
default_file_explorer = true default_file_explorer = false
}, },
dependencies = { dependencies = {
'nvim-tree/nvim-web-devicons' 'nvim-tree/nvim-web-devicons'

View File

@ -1,20 +1,21 @@
return { return {
"stevearc/conform.nvim", "stevearc/conform.nvim",
config = function() event = { "BufWritePre"},
require("conform").setup( cmd = { "ConformInfo"},
{ opts = {
formatters_by_ft = { formatters_by_ft = {
php = { "pint"}, php = { "pint"},
lua = { "stylua"}, lua = { "stylua"},
javascript = { "prettierd", "prettier", stop_after_first = true }, javascript = { "prettierd", "prettier", stop_after_first = true },
typescript = { "prettierd", "prettier", stop_after_first = true }, typescript = { "prettierd", "prettier", stop_after_first = true },
java = { "clang-format", },
cpp = { "clang-format", },
}, },
format_on_save = { format_on_save = { timeout_ms = 500 },
lsp_fallback = true, default_format_ops = {
lsp_format = "fallback"
}, },
}) },
config = function ()
require("conform").setup()
-- Command to run async formatting -- Command to run async formatting
vim.api.nvim_create_user_command("Format", function(args) vim.api.nvim_create_user_command("Format", function(args)
local range = nil local range = nil
@ -27,5 +28,8 @@ return {
end end
require("conform").format({ async = true, lsp_format = "fallback", range = range }) require("conform").format({ async = true, lsp_format = "fallback", range = range })
end, { range = true }) end, { range = true })
end end
} }

View File

@ -22,38 +22,21 @@ return {
}, },
config = function () config = function ()
local dap = require('dap') local dap = require('dap')
-- Godot Config
dap.adapters.godot = {
type = "server",
host = "127.0.0.1",
port = 6006
}
--dap.configurations.gdscript{
-- type = "godot",
-- request = "launch",
-- name = "launch scene",
-- project = "${workspaceFolder}"
--}
-- C/C++ Config
dap.configurations.cpp = { dap.configurations.cpp = {
{ {
name = "Launch", name = "Launch",
type= "lldb", type= "codelldb",
request = "launch", request = "launch",
program = function () program = function ()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() , 'file') return vim.fn.input('Path to executable: ', vim.fn.getcwd() , 'file')
end, end,
cwd = '${workspaceFolder}/Framework',
stopOnEntry = false, stopOnEntry = false,
runInTerminal = false,
} }
} }
dap.adapters.lldb = { dap.adapters.lldb = {
type = 'server', type = 'executable',
port= "${port}", command = "C:\\Program Files\\LLVM\\bin\\lldb-dap.exe",
executable = {
command = "C:\\Users\\nigel\\AppData\\Local\\nvim-data\\mason\\bin\\codelldb.cmd",
args = { "--port", "${port}"}
},
name = 'lldb' name = 'lldb'
} }
@ -74,7 +57,17 @@ return {
name = "Launch file", name = "Launch file",
program = "java ${file}", program = "java ${file}",
}} }}
-- Golang config dap.configurations.cpp = {{
name="launch",
type="lldb",
request="launch",
program = function ()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() ..'/', 'file')
end,
cwd = '${workspaceFolder}',
stopOnEntry = false,
args = {},
}}
dap.configurations.go = { dap.configurations.go = {
{ {
type = "delve", type = "delve",
@ -106,20 +99,14 @@ return {
args = {'dap', '-l', '127.0.0.1:${port}'}, args = {'dap', '-l', '127.0.0.1:${port}'},
} }
} }
local dap = require("dap") dap.adapters.codelldb = {
local ui = require("dapui") type= 'server',
dap.listeners.before.attach.dapui_config = function() port = '${port}',
ui.open() executable = {
end command = 'C:/Users/Nigel/Appdata/Local/nvim-data/mason/bin/codelldb.cmd',
dap.listeners.before.launch.dapui_config = function() args = {"--port", "${port}"}
ui.open() }
end }
dap.listeners.before.event_terminated.dapui_config = function()
ui.close()
end
dap.listeners.before.event_exited.dapui_config = function()
ui.close()
end
end end
} }
} }

View File

@ -1,8 +0,0 @@
return {
"j-hui/fidget.nvim",
config = function()
local opts = {
}
require("fidget").setup(opts)
end
}

View File

@ -1,29 +1,4 @@
return { return {
'lewis6991/gitsigns.nvim', 'lewis6991/gitsigns.nvim',
config = function() opt = {}
local opts = {
signs = {
add = { text = '+' },
change = { text = "~" },
delete = { text = "_" },
topdelete = { text = "-" },
changedelete = { text = "~" }
},
signs_staged = {
add = { text = '+' },
change = { text = "~" },
delete = { text = "_" },
topdelete = { text = "-" },
changedelete = { text = "~" },
untracked = { text = "*" },
},
signs_staged_enable = true,
signcolumn = true,
watch_gitdir = {
follow_files = true
},
auto_attach = true
}
require("gitsigns").setup(opts)
end,
} }

View File

@ -1,41 +1,22 @@
return { return {
"ThePrimeagen/harpoon", "ThePrimeagen/harpoon",
branch= "harpoon2", branch= "harpoon2",
dependencies = { dependencies = {{"nvim-lua/plenary.nvim"}},
{"nvim-lua/plenary.nvim"},
{"nvim-telescope/telescope.nvim"}
},
config = function() config = function()
local harpoon = require("harpoon") local harpoon = require("harpoon")
harpoon.setup() harpoon.setup()
vim.keymap.set("n", "ha", function() harpoon:list():add() end) vim.keymap.set("n", "<leader>a", function() harpoon:list():append() end)
vim.keymap.set("n", "hh", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) vim.keymap.set("n", "<C-h>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
local conf = require("telescope.config").values
local function toggle_telescope(harpoon_files)
local file_paths = {}
for _, item in ipairs(harpoon_files.items) do
table.insert(file_paths, item.value)
end
require("telescope.pickers").new({}, { vim.keymap.set("n", "<leader>1", function() harpoon:list():select(1) end)
result = file_paths, vim.keymap.set("n", "<leader>2", function() harpoon:list():select(2) end)
previewer = conf.file_previewer({}), vim.keymap.set("n", "<leader>3", function() harpoon:list():select(3) end)
sorter = conf.generic_sorter({}), vim.keymap.set("n", "<leader>4", function() harpoon:list():select(4) end)
}):find()
end
vim.keymap.set("n", "<leader>ha", function() harpoon:list():add() end)
vim.keymap.set("n", "<leader>hh", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
vim.keymap.set("n", "<leader>fe", function () toggle_telescope(harpoon:list()) end, { desc = "Open harpoon window"} )
vim.keymap.set("n", "C-1", function() harpoon:list():select(1) end)
vim.keymap.set("n", "C-2", function() harpoon:list():select(2) end)
vim.keymap.set("n", "C-3", function() harpoon:list():select(3) end)
vim.keymap.set("n", "C-4", function() harpoon:list():select(4) end)
vim.keymap.set("n", "<C-,>", function() harpoon:list():prev() end) vim.keymap.set("n", "<C-Q>", function() harpoon:list():prev() end)
vim.keymap.set("n", "<C-.>", function() harpoon:list():next() end) vim.keymap.set("n", "<C-E>", function() harpoon:list():next() end)
end end
} }

View File

@ -15,39 +15,18 @@ return
"hrsh7th/nvim-cmp", "hrsh7th/nvim-cmp",
{ {
'L3MON4D3/LuaSnip', 'L3MON4D3/LuaSnip',
dependencies = { dependencies = 'hrsh7th/nvim-cmp',
'hrsh7th/nvim-cmp',
'rafamadriz/friendly-snippets',
},
version = "v2.*", version = "v2.*",
}, },
{'mfussenegger/nvim-jdtls', dependencies = {'nvim-dap'}}, {'mfussenegger/nvim-jdtls', dependencies = {'nvim-dap'}},
"onsails/lspkind.nvim",
}, },
config = function() config = function()
vim.opt.completeopt = { "menu", "menuone", "noselect", "preview" }
require("lspkind").init({})
require("mason").setup() require("mason").setup()
require("mason-lspconfig").setup({ require("mason-lspconfig").setup({
ensure_installed = { "lua_ls", "bashls", "rust_analyzer" } ensure_installed = { "lua_ls", "bashls", "rust_analyzer" }
}) })
local ls = require("luasnip")
ls.config.set_config({
history = true,
updateevents = "TextChanged, TextChangedI",
enable_autosnippets = true,
})
local cmp = require('cmp') local cmp = require('cmp')
local lspkind = require("lspkind")
cmp.setup({ cmp.setup({
formatting = {
format = lspkind.cmp_format({
mode = 'symbol',
maxwidth = 60,
ellipsis_char = '...',
show_labelDetails = true,
}),
},
snippet = { snippet = {
expand = function(args) expand = function(args)
require('luasnip').lsp_expand(args.body) require('luasnip').lsp_expand(args.body)
@ -56,14 +35,15 @@ return
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4), ['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4), ['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-space>'] = cmp.mapping.complete(), ['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(), ['<C-e>'] = cmp.mapping.abort(),
['<C-y>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. ['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
}), }),
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = 'nvim_lsp', keyword_length = 1 }, { name = 'nvim_lsp', keyword_length = 1 },
{ name = 'luasnip' }, { name = 'luasnip', option = { show_autosnippets = true}},
{ name = 'path' }, { name = 'path' },
}, {
{ name = 'buffer', keyword_length = 2 }, { name = 'buffer', keyword_length = 2 },
}), }),
window = { window = {
@ -81,29 +61,35 @@ return
}) })
}) })
cmp.setup.filetype({ "sql" }, { -- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline({ '/', '?' }, {
mapping = cmp.mapping.preset.cmdline(),
sources = { sources = {
{ name = "vim-dadbod-completion" }, { name = 'buffer' }
{ name = "buffer" },
} }
}) })
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore). -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline(':', { cmp.setup.cmdline(':', {
mapping = cmp.mapping.preset.cmdline(), mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = 'path' }, { name = 'path' }
{ name = 'buffer' }
}, { }, {
{ name = 'cmdline' } { name = 'cmdline' }
}), }),
matching = { disallow_symbol_nonprefix_matching = false } matching = { disallow_symbol_nonprefix_matching = false }
}) })
local ls = require("luasnip")
ls.config.set_config({
history = true,
updateevents = "TextChanged, TextChangedI",
enable_autosnippets = true,
})
vim.keymap.set({"i", "s"}, "<C-K>", function() ls.expand() end, {silent = true}) vim.keymap.set({"i", "s"}, "<C-K>", function() ls.expand() end, {silent = true})
vim.keymap.set({ "i", "s" }, "<C-n>", function() ls.jump(1) end, { silent = true }) vim.keymap.set({"i", "s"}, "<C-L>", function() ls.jump(1) end, {silent = true })
vim.keymap.set({ "i", "s" }, "<C-p>", function() ls.jump(-1) end, { silent = true }) vim.keymap.set({"i", "s"}, "<C-J>", function() ls.jump(-1) end, {silent = true})
vim.keymap.set({"i", "s"}, "<C-E>", function() vim.keymap.set({"i", "s"}, "<C-E>", function()
if ls.choice_active() then if ls.choice_active() then
ls.change_choice(1) ls.change_choice(1)
@ -111,18 +97,18 @@ return
end, {silent = true}) end, {silent = true})
require("luasnip.loaders.from_lua").load({paths= "~/.config/nvim/lua/barink/snippets"}) require("luasnip.loaders.from_lua").load({paths= "~/.config/nvim/lua/barink/snippets"})
require("luasnip.loaders.from_vscode").lazy_load()
-- Set up lspconfig. -- Set up lspconfig.
local capabilities = require("cmp_nvim_lsp").default_capabilities() local capabilities = require("cmp_nvim_lsp").default_capabilities()
local lsp = require("lspconfig") local lsp = require("lspconfig")
local language_server = { local language_server = {
asm_lsp= true, asm_lsp= true,
mojo = true,
zls = true, zls = true,
kotlin_language_server = true,
emmet_language_server = true, emmet_language_server = true,
rust_analyzer = true, rust_analyzer = true,
--gdtoolkit = { flags = { debounce_text_changes = 150 }},
jdtls = true, jdtls = true,
pylsp = true, pylsp = true,
phpactor = { phpactor = {
@ -146,24 +132,13 @@ return
gopls = true, gopls = true,
intelephense = true, intelephense = true,
lua_ls = { lua_ls = {
config = {
settings = { settings = {
Lua = { Lua = {
runtime = {
version = 'LuaJIT',
},
workspace = {
checkThirdParty = false,
library = {
vim.env.VIMRUNTIME
}
},
diagnostics = { diagnostics = {
globals = { 'vim'} globals = { 'vim'}
} }
} }
} }
}
}, },
} }
@ -195,6 +170,8 @@ return
vim.keymap.set("n", "<LEADER>cr", vim.lsp.buf.rename, {buffer =-1}) vim.keymap.set("n", "<LEADER>cr", vim.lsp.buf.rename, {buffer =-1})
vim.keymap.set("n", "<LEADER>ca", vim.lsp.buf.code_action, {buffer = -1}) vim.keymap.set("n", "<LEADER>ca", vim.lsp.buf.code_action, {buffer = -1})
vim.keymap.set("n", "<LEADER>wd", builtin.lsp_document_symbols, {buffer = -1}) vim.keymap.set("n", "<LEADER>wd", builtin.lsp_document_symbols, {buffer = -1})
end end
}) })
end, end,

View File

@ -0,0 +1,11 @@
return {
"folke/noice.nvim",
event = "VeryLazy",
opts = {
},
dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
},
}

View File

@ -2,7 +2,7 @@ return {
{ {
"stevearc/oil.nvim", "stevearc/oil.nvim",
opt = { opt = {
default_file_explorer = true default_file_explorer = false
}, },
dependencies = { dependencies = {
'nvim-tree/nvim-web-devicons' 'nvim-tree/nvim-web-devicons'

View File

@ -21,7 +21,7 @@ return {
vim.keymap.set('n', '<leader>/', builtin.current_buffer_fuzzy_find) vim.keymap.set('n', '<leader>/', builtin.current_buffer_fuzzy_find)
vim.keymap.set('n', '<leader>gw', builtin.grep_string) vim.keymap.set('n', '<leader>gw', builtin.grep_string)
vim.keymap.set('n', '<leader>fp',function () vim.keymap.set('n', '<leader>fp',function ()
builtin.find_files { cwd = "~/.config/nvim/lua/barink/"} builtin.find_files { cwd = "~/AppData/Local/nvim/lua/barink/"}
end) end)
end end
} }

View File

@ -1,20 +1,23 @@
-- return {
-- "folke/tokyonight.nvim",
-- lazy = false,
-- priority = 1000,
-- opts = {},
-- config = function()
-- require("tokyonight").setup({
-- style = "night",
-- light_style = "day",
-- transparent = true,
-- terminal_colors = true,
-- dim_inactive = false,
-- lualine_bold = false,
-- })
--
-- vim.cmd [[colorscheme tokyonight]]
-- end
-- }
return { return {
{
"folke/tokyonight.nvim",
lazy = false,
priority = 1000,
opts = {},
config = function()
require("tokyonight").setup({
style = "night",
light_style = "day",
transparent = true,
terminal_colors = true,
dim_inactive = false,
lualine_bold = false,
})
end
},
{ {
"catppuccin/nvim", "catppuccin/nvim",
name="catppuccin", name="catppuccin",

View File

@ -0,0 +1,15 @@
return {
"folke/which-key.nvim",
event = "VeryLazy",
opts = {
},
keys = {
{
"<leader>?",
function()
require("which-key").show({global = false})
end,
desc = "Buffer Local Keymaps (which-key)",
}
}
}

View File

@ -21,8 +21,11 @@ vim.opt.termguicolors = true
vim.opt.scrolloff = 8 vim.opt.scrolloff = 8
vim.g.netrw_browse_split = 0
vim.g.netrw_winsize = 25
vim.opt.completeopt = {'menu', 'menuone', 'noselect' } vim.opt.completeopt = {'menu', 'menuone', 'noselect' }
vim.opt.inccommand = 'split'
vim.api.nvim_create_autocmd('LspAttach', { vim.api.nvim_create_autocmd('LspAttach', {
callback = function (args) callback = function (args)
local client = vim.lsp.get_client_by_id(args.data.client_id) local client = vim.lsp.get_client_by_id(args.data.client_id)
@ -32,10 +35,6 @@ vim.api.nvim_create_autocmd('LspAttach', {
end, end,
}) })
vim.g.netrw_browse_split = 0
vim.g.netrw_winsize = 25
--[[ --[[
-- Run zig test on save -- Run zig test on save
-- TODO: fix vim.cmd call -- TODO: fix vim.cmd call
@ -45,3 +44,6 @@ vim.api.nvim_create_autocmd('BufWritePost' , {
vim.cmd{cmd = '!zig' , args= {'test', vim.fn.expand('%')} } vim.cmd{cmd = '!zig' , args= {'test', vim.fn.expand('%')} }
end end
})]]-- })]]--