This commit is contained in:
sankalp committed 2024-01-14 16:03:35 +05:45
1 parent f6f473565b
commit 19d9347db9
31 files changed
+117 -30

No files matched your search

+8
View File
@@ -74,3 +74,11 @@ vim.api.nvim_create_autocmd("TermOpen", {
vim.cmd("setlocal listchars= nonumber norelativenumber")
end,
})
-- Disable next line comments
vim.api.nvim_create_autocmd("BufEnter", {
callback = function()
vim.cmd("set formatoptions-=cro")
vim.cmd("setlocal formatoptions-=cro")
end,
})
+7
View File
@@ -6,6 +6,13 @@ local opt = vim.g
-- Optimizations on startup
vim.loader.enable()
-- Autoformat on save (Global)
opt.autoformat = true
-- Disable netrw
opt.loaded_netrw = 1
opt.loaded_netrwPlugin = 1
-- Font
opt.gui_font_default_size = 10
opt.gui_font_size = opt.gui_font_default_size
@@ -0,0 +1,24 @@
return {
{
"otavioschwanck/arrow.nvim",
event = "VeryLazy",
opts = {
show_icons = true,
},
keys = {
{
"<leader>h",
function()
require("arrow.ui").openMenu()
end,
desc = "Harpoon",
},
},
},
{
"nvim-lualine/lualine.nvim",
opts = function(_, opts)
table.insert(opts.sections.lualine_c, require("arrow.statusline").text_for_statusline_with_icons())
end,
},
}
@@ -20,8 +20,6 @@ return {
{
"stevearc/conform.nvim",
opts = function(_, opts)
--- Extend the conform plugin config and add given formatters
---@param tbl table<string, conform.FormatterUnit[]> Table of filetype to formatters mappings
local function add_formatters(tbl)
for ft, formatters in pairs(tbl) do
if opts.formatters_by_ft[ft] == nil then
@@ -42,6 +40,7 @@ return {
})
opts.formatters = {
cwd = require("conform.util").root_file({ "biome.json" }),
biome = {
condition = function(self, ctx)
return vim.fs.find({ "biome.json" }, { path = ctx.filename, upward = true })[1]
@@ -6,6 +6,9 @@ return {
lazy = false,
name = "catppuccin",
opts = {
styles = {
comments = { "italic" },
},
background = {
light = "latte",
dark = "macchiato",
@@ -0,0 +1,6 @@
return {
"craftzdog/solarized-osaka.nvim",
name = "solarized-osaka",
lazy = false,
opts = {},
}
@@ -15,6 +15,7 @@ return {
"python",
"lua",
"html",
"vue",
},
},
}
+2 -1
View File
@@ -7,7 +7,8 @@ return {
},
window = {
mappings = {
["e"] = "open",
["l"] = "open",
["h"] = "close_node",
},
},
},