format everything with stylua
This commit is contained in:
parent
09e396ede2
commit
ecc18f4f63
12 changed files with 72 additions and 72 deletions
|
@ -1,5 +1,5 @@
|
|||
vim.opt.termguicolors = true
|
||||
require('bufferline').setup{
|
||||
require("bufferline").setup({
|
||||
options = {
|
||||
diagnostics = "nvim_lsp",
|
||||
themable = false,
|
||||
|
@ -7,11 +7,11 @@ require('bufferline').setup{
|
|||
{
|
||||
filetype = "neo-tree",
|
||||
text = "File Tree",
|
||||
separator = true
|
||||
}
|
||||
separator = true,
|
||||
},
|
||||
},
|
||||
separator_style = "slant",
|
||||
show_buffer_close_icons = false,
|
||||
show_close_icon = false,
|
||||
}
|
||||
}
|
||||
},
|
||||
})
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
require('gitsigns').setup{
|
||||
require("gitsigns").setup({
|
||||
current_line_blame = true,
|
||||
current_line_blame_opts = {
|
||||
virt_text_pos = 'right_align',
|
||||
delay = 0
|
||||
virt_text_pos = "right_align",
|
||||
delay = 0,
|
||||
},
|
||||
current_line_blame_formatter = '<author>, <author_time:%R> - <summary>'
|
||||
}
|
||||
|
||||
current_line_blame_formatter = "<author>, <author_time:%R> - <summary>",
|
||||
})
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
require('ibl').setup{
|
||||
scope = { enabled = true }
|
||||
}
|
||||
require("ibl").setup({
|
||||
scope = { enabled = true },
|
||||
})
|
||||
|
|
|
@ -23,3 +23,4 @@ lspconfig.lua_ls.setup({
|
|||
end,
|
||||
})
|
||||
|
||||
lspconfig.nixd.setup({})
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require('lualine').setup{
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
globalstatus = true,
|
||||
theme = 'dracula-nvim'
|
||||
}
|
||||
}
|
||||
theme = "dracula-nvim",
|
||||
},
|
||||
})
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
require('neo-tree').setup{
|
||||
require("neo-tree").setup({
|
||||
close_if_last_window = false,
|
||||
enable_diagnostics = true,
|
||||
enable_git_status = true,
|
||||
filesystem = {
|
||||
filtered_items = {
|
||||
visible = true
|
||||
visible = true,
|
||||
},
|
||||
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>")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local builtin = require('telescope.builtin')
|
||||
vim.keymap.set('n', '<leader>ff', builtin.git_files, {})
|
||||
vim.keymap.set('n', '<leader>fa', builtin.find_files, {})
|
||||
vim.keymap.set('n', '<leader>gf', builtin.live_grep, {})
|
||||
local builtin = require("telescope.builtin")
|
||||
vim.keymap.set("n", "<leader>ff", builtin.git_files, {})
|
||||
vim.keymap.set("n", "<leader>fa", builtin.find_files, {})
|
||||
vim.keymap.set("n", "<leader>gf", builtin.live_grep, {})
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require'nvim-treesitter.configs'.setup {
|
||||
require("nvim-treesitter.configs").setup({
|
||||
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
|
@ -30,4 +30,4 @@ require'nvim-treesitter.configs'.setup {
|
|||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
}
|
||||
})
|
||||
|
|
7
init.lua
7
init.lua
|
@ -1,4 +1,3 @@
|
|||
require('plugins')
|
||||
require('remaps')
|
||||
require('options')
|
||||
|
||||
require("plugins")
|
||||
require("remaps")
|
||||
require("options")
|
||||
|
|
|
@ -1,55 +1,57 @@
|
|||
return require('packer').startup(function(use)
|
||||
use 'wbthomason/packer.nvim'
|
||||
use 'lewis6991/gitsigns.nvim'
|
||||
use "lukas-reineke/indent-blankline.nvim"
|
||||
use "mrcjkb/nvim-lastplace"
|
||||
use "akinsho/toggleterm.nvim"
|
||||
return require("packer").startup(function(use)
|
||||
use("wbthomason/packer.nvim")
|
||||
use("lewis6991/gitsigns.nvim")
|
||||
use("lukas-reineke/indent-blankline.nvim")
|
||||
use("mrcjkb/nvim-lastplace")
|
||||
use("akinsho/toggleterm.nvim")
|
||||
use("wesleimp/stylua.nvim")
|
||||
use("neovim/nvim-lspconfig")
|
||||
|
||||
use {
|
||||
'akinsho/bufferline.nvim',
|
||||
use({
|
||||
"akinsho/bufferline.nvim",
|
||||
as = "bufferline.nvim",
|
||||
requires = {
|
||||
{'nvim-tree/nvim-web-devicons'}
|
||||
}
|
||||
}
|
||||
{ "nvim-tree/nvim-web-devicons" },
|
||||
},
|
||||
})
|
||||
|
||||
use {
|
||||
use({
|
||||
"kdheepak/lazygit.nvim",
|
||||
requires = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
use {
|
||||
'Mofiqul/dracula.nvim',
|
||||
use({
|
||||
"Mofiqul/dracula.nvim",
|
||||
config = function()
|
||||
vim.cmd[[colorscheme dracula]]
|
||||
end
|
||||
}
|
||||
vim.cmd([[colorscheme dracula]])
|
||||
end,
|
||||
})
|
||||
|
||||
use {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
use({
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
requires = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"MunifTanjim/nui.nvim"
|
||||
}
|
||||
}
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
})
|
||||
|
||||
use {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
requires = { 'nvim-tree/nvim-web-devicons', opt = true }
|
||||
}
|
||||
use({
|
||||
"nvim-lualine/lualine.nvim",
|
||||
requires = { "nvim-tree/nvim-web-devicons", opt = true },
|
||||
})
|
||||
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
use({
|
||||
"nvim-telescope/telescope.nvim",
|
||||
requires = {
|
||||
{'nvim-lua/plenary.nvim'}
|
||||
}
|
||||
}
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
},
|
||||
})
|
||||
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
{ run = ':TSUpdate' }
|
||||
}
|
||||
use({
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
{ run = ":TSUpdate" },
|
||||
})
|
||||
end)
|
||||
|
|
|
@ -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", "<leader>w", "<cmd>bdelete<Return><cmd>bnext<Return>")
|
||||
vim.keymap.set("n", "<leader>q", vim.cmd.close)
|
||||
|
||||
|
|
Loading…
Reference in a new issue