mirror of
https://git.aramjonghu.nl/AramJonghu/nvim.git
synced 2026-03-22 01:39:54 +01:00
11/12
This commit is contained in:
@@ -2,6 +2,7 @@ require("globals")
|
|||||||
require("options")
|
require("options")
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
require("mappings")
|
require("mappings")
|
||||||
|
require("autocmd")
|
||||||
vim.cmd("source ~/.config/nvim/suda.vim")
|
vim.cmd("source ~/.config/nvim/suda.vim")
|
||||||
local time = tonumber(os.date "%H")
|
local time = tonumber(os.date "%H")
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1 @@
|
|||||||
local autocmd = vim.api.nvim_create_autocmd
|
local autocmd = vim.api.nvim_create_autocmd
|
||||||
|
|
||||||
autocmd("BufWritePre", {
|
|
||||||
callback = function()
|
|
||||||
local ok = pcall(function() vim.cmd "undojoin" end)
|
|
||||||
vim.cmd "Neoformat"
|
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|||||||
+1
-1
@@ -90,7 +90,7 @@ dap.adapters["pwa-node"] = {
|
|||||||
command = "node",
|
command = "node",
|
||||||
-- 💀 Make sure to update this path to point to your installation
|
-- 💀 Make sure to update this path to point to your installation
|
||||||
args = {
|
args = {
|
||||||
"/home/zach/.config/nvim/java-dap/js-debug/src/dapDebugServer.js",
|
"%HOME/.config/nvim/java-dap/js-debug/src/dapDebugServer.js",
|
||||||
"${port}"
|
"${port}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
let g:neoformat_verbose = 1
|
|
||||||
|
|||||||
@@ -4,6 +4,6 @@ require'nvim-treesitter.configs'.setup {
|
|||||||
auto_install = true,
|
auto_install = true,
|
||||||
highlight = {enable = true, additional_vim_regex_highlighting = false},
|
highlight = {enable = true, additional_vim_regex_highlighting = false},
|
||||||
indent = {enable = true, disable = {}},
|
indent = {enable = true, disable = {}},
|
||||||
ensure_installed = {"jsx", "toml", "json", "yaml", "css", "html", "lua"},
|
ensure_installed = {"toml", "json", "yaml", "css", "html", "lua"},
|
||||||
autotag = {enable = true}
|
autotag = {enable = true}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
local map = vim.keymap.set
|
local map = vim.keymap.set
|
||||||
local default_opts = {noremap = true}
|
local default_opts = {noremap = true}
|
||||||
|
|
||||||
|
map("n", "<leader>n", function() Snacks.notifier.show_history() end)
|
||||||
|
|
||||||
map('n', '<leader>ff',
|
map('n', '<leader>ff',
|
||||||
"<cmd>lua require'telescope.builtin'.find_files({ find_command = {'rg', '--files', '--hidden', '-g', '!.git' }})<cr>",
|
"<cmd>lua require'telescope.builtin'.find_files({ find_command = {'rg', '--files', '--hidden', '-g', '!.git' }})<cr>",
|
||||||
default_opts)
|
default_opts)
|
||||||
|
|||||||
+3
-1
@@ -18,7 +18,7 @@ vim.opt.signcolumn = "yes:1"
|
|||||||
vim.opt.isfname:append("@-@")
|
vim.opt.isfname:append("@-@")
|
||||||
vim.opt.updatetime = 50
|
vim.opt.updatetime = 50
|
||||||
vim.opt.textwidth = 0
|
vim.opt.textwidth = 0
|
||||||
vim.opt.colorcolumn = "80"
|
vim.opt.colorcolumn = "100"
|
||||||
vim.opt.formatoptions = "rqnj"
|
vim.opt.formatoptions = "rqnj"
|
||||||
vim.o.sessionoptions =
|
vim.o.sessionoptions =
|
||||||
"blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
|
"blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
|
||||||
@@ -48,3 +48,5 @@ local sep = is_windows and "\\" or "/"
|
|||||||
local delim = is_windows and ";" or ":"
|
local delim = is_windows and ";" or ":"
|
||||||
vim.env.PATH = table.concat({vim.fn.stdpath "data", "mason", "bin"}, sep) ..
|
vim.env.PATH = table.concat({vim.fn.stdpath "data", "mason", "bin"}, sep) ..
|
||||||
delim .. vim.env.PATH
|
delim .. vim.env.PATH
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command('Nf', function() vim.cmd('Neoformat') end, {})
|
||||||
|
|||||||
Reference in New Issue
Block a user