···1414 return
1515 end
1616 treesitter.setup {
1717- ensure_installed = { "vimdoc", "python", "markdown", "markdown_inline", "css", "html", "javascript", "yaml", "bash", "json", "lua", "regex", "sql", "toml", "vim", "rust", "glimmer" }, -- one of "all" or a list of languages
1717+ ensure_installed = { "vimdoc", "python", "markdown", "markdown_inline", "css", "html", "javascript", "yaml", "bash", "json", "lua", "regex", "sql", "toml", "vim", "rust" }, -- one of "all" or a list of languages
1818 sync_install = false,
1919 auto_install = true,
2020 highlight = {
+11
nvim/.config/nvim/lua/sspaeti/remap.lua
···131131vim.keymap.set("n", "<Leader>li", ":Mason<CR>")
132132vim.keymap.set("n", "<Leader>ll", ":Lazy<CR>")
133133134134+-- Toggle format on save (controls the LspFormatting augroup from none-ls)
135135+vim.g.format_on_save = false -- disabled by default
136136+vim.keymap.set("n", "<Leader>lF", function()
137137+ vim.g.format_on_save = not vim.g.format_on_save
138138+ if vim.g.format_on_save then
139139+ vim.notify("Format on save: ON")
140140+ else
141141+ vim.notify("Format on save: OFF")
142142+ end
143143+end, { desc = "Toggle format on save" })
144144+134145-- closing buffers "https://stackoverflow.com/a/8585343/5246670
135146vim.keymap.set("n", "<C-w>q", ":bp<bar>sp<bar>bn<bar>bd<CR>")
136147--vim.keymap.set("n", "<leader>q", ":bp<bar>sp<bar>bn<bar>bd<CR>")