Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago-Assis-T committed Sep 10, 2023
1 parent 1ee34f4 commit 76be616
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
3 changes: 2 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
require('plugins')
require('colors')
require('remaps')
require('settings')
8 changes: 4 additions & 4 deletions lua/plugins/lsp/formatter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ require('formatter').setup({
require('formatter.filetypes.css').prettier,
},
javascript = {
require('formatter.filetypes.javascript').eslint,
require('formatter.filetypes.javascript').eslint_d,
},
javascriptreact = {
require('formatter.filetypes.javascriptreact').eslint,
require('formatter.filetypes.javascriptreact').eslint_d,
},
typescript = {
require('formatter.filetypes.typescript').eslint,
require('formatter.filetypes.typescript').eslint_d,
},
typescriptreact = {
require('formatter.filetypes.typescriptreact').eslint,
require('formatter.filetypes.typescriptreact').eslint_d,
},
json = {
require('formatter.filetypes.json').prettier,
Expand Down
26 changes: 17 additions & 9 deletions lua/plugins/telescope.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
require('telescope').setup({
extensions = {
file_browser = {
theme = 'dropdown',
hijack_netrw = true,
},
},
})
require('telescope').setup({})
require('telescope').load_extension('fzf')
require('telescope').load_extension('file_browser')
vim.keymap.set('n', '<leader>?', require('telescope.builtin').oldfiles, { desc = '[?] Find recently opened files' })
vim.keymap.set('n', '<leader><space>', require('telescope.builtin').buffers, { desc = '[ ] Find existing buffers' })
vim.keymap.set('n', '<leader>/', function()
-- You can pass additional configuration to telescope to change theme, layout, etc.
require('telescope.builtin').current_buffer_fuzzy_find(require('telescope.themes').get_dropdown({
winblend = 10,
previewer = false,
}))
end, { desc = '[/] Fuzzily search in current buffer' })

vim.keymap.set('n', '<leader>ft', require('telescope.builtin').git_files, { desc = '[F]ind gi[T]' })
vim.keymap.set('n', '<leader>ff', require('telescope.builtin').find_files, { desc = '[F]ind [F]iles' })
vim.keymap.set('n', '<leader>fh', require('telescope.builtin').help_tags, { desc = '[F]ind [H]elp' })
vim.keymap.set('n', '<leader>fw', require('telescope.builtin').grep_string, { desc = '[F]ind [W]ord' })
vim.keymap.set('n', '<leader>fg', require('telescope.builtin').live_grep, { desc = '[F]ind [G]rep' })
vim.keymap.set('n', '<leader>fd', require('telescope.builtin').diagnostics, { desc = '[F]ind [D]iagnostics' })
9 changes: 0 additions & 9 deletions lua/remaps.lua

This file was deleted.

0 comments on commit 76be616

Please sign in to comment.