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")
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')
require('telescope').setup {
defaults = {
preview = false,
},
defaults = {
},
}
-- disable preview in telescope
vim.g.telescope_previewer_enable = false
vim.keymap.set('n', '<leader>ff', builtin.git_files, {})
vim.keymap.set('n', '<leader>ww', builtin.live_grep, {})
vim.keymap.set('n', '<leader>sr', builtin.lsp_references, {})