format everything with stylua

This commit is contained in:
Adithya 2024-02-11 14:02:36 +05:30
parent 09e396ede2
commit ecc18f4f63
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
12 changed files with 72 additions and 72 deletions

View file

@ -1,5 +1,5 @@
vim.opt.termguicolors = true vim.opt.termguicolors = true
require('bufferline').setup{ require("bufferline").setup({
options = { options = {
diagnostics = "nvim_lsp", diagnostics = "nvim_lsp",
themable = false, themable = false,
@ -7,11 +7,11 @@ require('bufferline').setup{
{ {
filetype = "neo-tree", filetype = "neo-tree",
text = "File Tree", text = "File Tree",
separator = true separator = true,
} },
}, },
separator_style = "slant", separator_style = "slant",
show_buffer_close_icons = false, show_buffer_close_icons = false,
show_close_icon = false, show_close_icon = false,
} },
} })

View file

@ -1,9 +1,8 @@
require('gitsigns').setup{ require("gitsigns").setup({
current_line_blame = true, current_line_blame = true,
current_line_blame_opts = { current_line_blame_opts = {
virt_text_pos = 'right_align', virt_text_pos = "right_align",
delay = 0 delay = 0,
}, },
current_line_blame_formatter = '<author>, <author_time:%R> - <summary>' current_line_blame_formatter = "<author>, <author_time:%R> - <summary>",
} })

View file

@ -1,3 +1,3 @@
require('ibl').setup{ require("ibl").setup({
scope = { enabled = true } scope = { enabled = true },
} })

View file

@ -23,3 +23,4 @@ lspconfig.lua_ls.setup({
end, end,
}) })
lspconfig.nixd.setup({})

View file

@ -1,6 +1,6 @@
require('lualine').setup{ require("lualine").setup({
options = { options = {
globalstatus = true, globalstatus = true,
theme = 'dracula-nvim' theme = "dracula-nvim",
} },
} })

View file

@ -1,16 +1,16 @@
require('neo-tree').setup{ require("neo-tree").setup({
close_if_last_window = false, close_if_last_window = false,
enable_diagnostics = true, enable_diagnostics = true,
enable_git_status = true, enable_git_status = true,
filesystem = { filesystem = {
filtered_items = { filtered_items = {
visible = true visible = true,
}, },
follow_current_file = { follow_current_file = {
enabled = true enabled = true,
}, },
use_libuv_file_watcher = true use_libuv_file_watcher = true,
} },
} })
vim.keymap.set("n", "<leader>1", "<cmd>Neotree toggle<Return>") vim.keymap.set("n", "<leader>1", "<cmd>Neotree toggle<Return>")

View file

@ -1,4 +1,4 @@
local builtin = require('telescope.builtin') local builtin = require("telescope.builtin")
vim.keymap.set('n', '<leader>ff', builtin.git_files, {}) vim.keymap.set("n", "<leader>ff", builtin.git_files, {})
vim.keymap.set('n', '<leader>fa', builtin.find_files, {}) vim.keymap.set("n", "<leader>fa", builtin.find_files, {})
vim.keymap.set('n', '<leader>gf', builtin.live_grep, {}) vim.keymap.set("n", "<leader>gf", builtin.live_grep, {})

View file

@ -1,4 +1,4 @@
require'nvim-treesitter.configs'.setup { require("nvim-treesitter.configs").setup({
ensure_installed = { ensure_installed = {
"bash", "bash",
@ -30,4 +30,4 @@ require'nvim-treesitter.configs'.setup {
enable = true, enable = true,
additional_vim_regex_highlighting = false, additional_vim_regex_highlighting = false,
}, },
} })

View file

@ -1,4 +1,3 @@
require('plugins') require("plugins")
require('remaps') require("remaps")
require('options') require("options")

View file

@ -1,55 +1,57 @@
return require('packer').startup(function(use) return require("packer").startup(function(use)
use 'wbthomason/packer.nvim' use("wbthomason/packer.nvim")
use 'lewis6991/gitsigns.nvim' use("lewis6991/gitsigns.nvim")
use "lukas-reineke/indent-blankline.nvim" use("lukas-reineke/indent-blankline.nvim")
use "mrcjkb/nvim-lastplace" use("mrcjkb/nvim-lastplace")
use "akinsho/toggleterm.nvim" use("akinsho/toggleterm.nvim")
use("wesleimp/stylua.nvim")
use("neovim/nvim-lspconfig")
use { use({
'akinsho/bufferline.nvim', "akinsho/bufferline.nvim",
as = "bufferline.nvim", as = "bufferline.nvim",
requires = { requires = {
{'nvim-tree/nvim-web-devicons'} { "nvim-tree/nvim-web-devicons" },
} },
} })
use { use({
"kdheepak/lazygit.nvim", "kdheepak/lazygit.nvim",
requires = { requires = {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
}, },
} })
use { use({
'Mofiqul/dracula.nvim', "Mofiqul/dracula.nvim",
config = function() config = function()
vim.cmd[[colorscheme dracula]] vim.cmd([[colorscheme dracula]])
end end,
} })
use { use({
"nvim-neo-tree/neo-tree.nvim", "nvim-neo-tree/neo-tree.nvim",
requires = { requires = {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", "nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim" "MunifTanjim/nui.nvim",
} },
} })
use { use({
'nvim-lualine/lualine.nvim', "nvim-lualine/lualine.nvim",
requires = { 'nvim-tree/nvim-web-devicons', opt = true } requires = { "nvim-tree/nvim-web-devicons", opt = true },
} })
use { use({
'nvim-telescope/telescope.nvim', "nvim-telescope/telescope.nvim",
requires = { requires = {
{'nvim-lua/plenary.nvim'} { "nvim-lua/plenary.nvim" },
} },
} })
use { use({
'nvim-treesitter/nvim-treesitter', "nvim-treesitter/nvim-treesitter",
{ run = ':TSUpdate' } { run = ":TSUpdate" },
} })
end) end)

View file

@ -3,4 +3,3 @@ vim.keymap.set("n", "<C-d>", vim.cmd.bnext)
vim.keymap.set("n", "<C-h>", vim.cmd.nohlsearch) vim.keymap.set("n", "<C-h>", vim.cmd.nohlsearch)
vim.keymap.set("n", "<leader>w", "<cmd>bdelete<Return><cmd>bnext<Return>") vim.keymap.set("n", "<leader>w", "<cmd>bdelete<Return><cmd>bnext<Return>")
vim.keymap.set("n", "<leader>q", vim.cmd.close) vim.keymap.set("n", "<leader>q", vim.cmd.close)