getting rid of tabs, adding nullls for sql, and adding telescope preview back in
This commit is contained in:
@@ -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)
|
||||
@@ -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
|
||||
},
|
||||
})
|
||||
|
||||
@@ -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, {})
|
||||
|
||||
Reference in New Issue
Block a user