getting rid of tabs, adding nullls for sql, and adding telescope preview back in

This commit is contained in:
Arjun Patel
2023-05-25 10:57:47 -07:00
parent 591fdce55e
commit eb1bcd026c
5 changed files with 14 additions and 28 deletions
-9
View File
@@ -1,9 +0,0 @@
local map = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }
-- Move to previous/next
map('n', '<C-,>', ':BufferPrevious<CR>', opts)
map('n', '<C-.>', ':BufferNext<CR>', opts)
-- close current buffer
map('n', '<C-x>', ':BufferClose<CR>', opts)
+8 -2
View File
@@ -1,6 +1,12 @@
local null_ls = require("null-ls") local null_ls = require("null-ls")
null_ls.setup({ null_ls.setup({
sources = { sources = {
}, -- sql lint
null_ls.builtins.diagnostics.sqlfluff.with({
extra_args = { "--dialect", "postgres" }, -- change to your dialect
}),
-- postgres format
null_ls.builtins.formatting.pg_format
},
}) })
+2 -6
View File
@@ -1,14 +1,10 @@
local builtin = require('telescope.builtin') local builtin = require('telescope.builtin')
require('telescope').setup { require('telescope').setup {
defaults = { defaults = {
preview = false, },
},
} }
-- disable preview in telescope
vim.g.telescope_previewer_enable = false
vim.keymap.set('n', '<leader>ff', builtin.git_files, {}) vim.keymap.set('n', '<leader>ff', builtin.git_files, {})
vim.keymap.set('n', '<leader>ww', builtin.live_grep, {}) vim.keymap.set('n', '<leader>ww', builtin.live_grep, {})
vim.keymap.set('n', '<leader>sr', builtin.lsp_references, {}) vim.keymap.set('n', '<leader>sr', builtin.lsp_references, {})
-2
View File
@@ -72,6 +72,4 @@ return require('packer').startup(function(use)
end end
} }
use 'romgrk/barbar.nvim'
end) end)
+4 -9
View File
@@ -140,11 +140,6 @@ _G.packer_plugins = {
path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/git-blame.nvim", path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/git-blame.nvim",
url = "https://github.com/f-person/git-blame.nvim" url = "https://github.com/f-person/git-blame.nvim"
}, },
harpoon = {
loaded = true,
path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/harpoon",
url = "https://github.com/theprimeagen/harpoon"
},
["lsp-zero.nvim"] = { ["lsp-zero.nvim"] = {
loaded = true, loaded = true,
path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim", path = "/Users/talksik/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim",
@@ -229,14 +224,14 @@ _G.packer_plugins = {
} }
time([[Defining packer_plugins]], false) time([[Defining packer_plugins]], false)
-- Config for: rose-pine
time([[Config for rose-pine]], true)
try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\0056\0\0\0009\0\1\0'\2\2\0B\0\2\1K\0\1\0\26colorscheme rose-pine\bcmd\bvim\0", "config", "rose-pine")
time([[Config for rose-pine]], false)
-- Config for: Comment.nvim -- Config for: Comment.nvim
time([[Config for Comment.nvim]], true) time([[Config for Comment.nvim]], true)
try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0", "config", "Comment.nvim") try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0", "config", "Comment.nvim")
time([[Config for Comment.nvim]], false) time([[Config for Comment.nvim]], false)
-- Config for: rose-pine
time([[Config for rose-pine]], true)
try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\0056\0\0\0009\0\1\0'\2\2\0B\0\2\1K\0\1\0\26colorscheme rose-pine\bcmd\bvim\0", "config", "rose-pine")
time([[Config for rose-pine]], false)
_G._packer.inside_compile = false _G._packer.inside_compile = false
if _G._packer.needs_bufread == true then if _G._packer.needs_bufread == true then