Skip to content

Commit

Permalink
Update neovim configs
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi committed Jun 6, 2024
1 parent d5fd388 commit 366954a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
11 changes: 4 additions & 7 deletions neovim/.config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ local set_clangd_opening_path = function(callback)
end
end

local new_window = function()
-- Why I can't call this by indexing vim.cmd???
vim.cmd("botright " .. math.floor(vim.opt.lines:get() / 4) .. " new")
end

local term = {
jobid = nil,
bufnr = nil,
Expand All @@ -60,7 +55,8 @@ term.create = function(cmd, args, opts)
focus_terminal = false,
})
args = args or {}
new_window()
-- Why I can't call this by indexing vim.cmd???
vim.cmd("botright " .. math.floor(vim.opt.lines:get() / 4) .. " new")
term.bufnr = vim.api.nvim_win_get_buf(vim.fn.win_getid())
vim.api.nvim_buf_set_option(0, "buftype", "nofile")
vim.api.nvim_buf_set_option(0, "bufhidden", "wipe")
Expand Down Expand Up @@ -1071,12 +1067,13 @@ vim.opt.laststatus = 3
vim.opt.statusline = [[%<%f %m%r%{luaeval("lsp_status()")} %= %{luaeval("dap_status()")}]]
vim.opt.smartindent = false
vim.opt.pumheight = 20
vim.opt.completeopt = "menuone,noselect,noinsert"
vim.opt.completeopt = "menuone,noselect,noinsert,fuzzy"
vim.opt.complete:append({ "U", "i", "d" })
vim.opt.wildmode = "longest:full,full"
vim.opt.wildignore:append({ "*.pyc", ".git", ".idea", "*.o" })
vim.opt.wildoptions = "pum,tagfile,fuzzy"
vim.opt.suffixes:append({ ".pyc", ".tmp" })
vim.opt.spell = true

if vim.fn.executable("rg") == 1 then
vim.opt.grepprg = "rg --no-messages --vimgrep --no-heading --smart-case"
Expand Down
10 changes: 5 additions & 5 deletions neovim/.config/nvim/lazy-lock.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"codeium.vim": {
"branch": "main",
"commit": "289eb724e5d6fab2263e94a1ad6e54afebefafb2"
"commit": "decfb541c9fd176f467991dcde8923c7db362e02"
},
"lazy.nvim": {
"branch": "main",
"commit": "24fa2a97085ca8a7220b5b078916f81e316036fd"
"commit": "70f2c090d3ffb14f8702d468e05beb240b768881"
},
"nvim-dap": {
"branch": "master",
"commit": "922ebc75c2fa9305e36402fbd8c984c8638770a0"
"commit": "6f79b822997f2e8a789c6034e147d42bc6706770"
},
"nvim-fzy": {
"branch": "main",
"commit": "a7a746f0e46f6e191c3ade52fd77d72a4239fe72"
"commit": "5ce61c1c9644d620a908b0814dd72706cf3f9dc8"
},
"nvim-qwahl": {
"branch": "main",
"commit": "6852b05d04baba87c1eee83f03a1482989c742de"
"commit": "4494745a4094f791aa4945be34a6ca2c7808735a"
}
}

0 comments on commit 366954a

Please sign in to comment.