Compare commits
3 Commits
aac1e91dcb
...
v1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 2338b310f2 | |||
| 758322bd93 | |||
| 1a2df25f5e |
@@ -24,6 +24,7 @@
|
|||||||
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
|
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
|
||||||
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
|
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "bdbc65aadc708ce528efb22bca5f82a7cca6b54d" },
|
"nvim-lspconfig": { "branch": "master", "commit": "bdbc65aadc708ce528efb22bca5f82a7cca6b54d" },
|
||||||
|
"nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
|
||||||
"nvim-sops": { "branch": "main", "commit": "cb2209562d00ef8c6c88bdec836d9edb8fbb96ef" },
|
"nvim-sops": { "branch": "main", "commit": "cb2209562d00ef8c6c88bdec836d9edb8fbb96ef" },
|
||||||
"nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
|
"nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "00f128dd73086aa578dc3d9142de06c633b7c685" },
|
"nvim-treesitter": { "branch": "master", "commit": "00f128dd73086aa578dc3d9142de06c633b7c685" },
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
vim.filetype.add({
|
vim.filetype.add({
|
||||||
|
extension = {
|
||||||
|
["tf"] = "terraform",
|
||||||
|
},
|
||||||
pattern = {
|
pattern = {
|
||||||
[".*/playbooks/.*%.ya?ml"] = "yaml.ansible",
|
[".*/playbooks/.*%.ya?ml"] = "yaml.ansible",
|
||||||
[".*/roles/.*%.ya?ml"] = "yaml.ansible",
|
[".*/roles/.*%.ya?ml"] = "yaml.ansible",
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
return {
|
return {
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
dependencies = { 'nvim-tree/nvim-web-devicons', branch = 'master' },
|
dependencies = {
|
||||||
|
{ 'nvim-tree/nvim-web-devicons', branch = 'master', },
|
||||||
|
'SmiteshP/nvim-navic',
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local colors = {
|
local colors = {
|
||||||
black = '#282828',
|
black = '#282828',
|
||||||
@@ -55,13 +58,9 @@ return {
|
|||||||
'filename',
|
'filename',
|
||||||
path = 4,
|
path = 4,
|
||||||
},
|
},
|
||||||
function()
|
{
|
||||||
return require("nvim-treesitter").statusline({
|
'navic',
|
||||||
indicator_size = 70,
|
},
|
||||||
type_patterns = { "class", "function", "method" },
|
|
||||||
separator = " -> ",
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
15
lua/crentist/lazy/navic.lua
Normal file
15
lua/crentist/lazy/navic.lua
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
return {
|
||||||
|
'SmiteshP/nvim-navic',
|
||||||
|
dependencies = {
|
||||||
|
'neovim/nvim-lspconfig'
|
||||||
|
},
|
||||||
|
config = function ()
|
||||||
|
local navic = require('nvim-navic')
|
||||||
|
navic.setup({
|
||||||
|
lsp = {
|
||||||
|
auto_attach = true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,31 +1,31 @@
|
|||||||
return {
|
return {
|
||||||
"FabianWirth/search.nvim",
|
'FabianWirth/search.nvim',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
'nvim-lua/plenary.nvim',
|
||||||
"nvim-telescope/telescope.nvim",
|
'nvim-telescope/telescope.nvim',
|
||||||
},
|
},
|
||||||
|
|
||||||
version = "0.1.6",
|
version = '0.1.6',
|
||||||
|
|
||||||
config = function()
|
config = function()
|
||||||
local telescope = require('telescope')
|
local telescope = require('telescope')
|
||||||
local telescopeConfig = require('telescope.config')
|
local telescopeConfig = require('telescope.config')
|
||||||
|
|
||||||
local vimgrep_arguments = { unpack(telescopeConfig.values.vimgrep_arguments) }
|
local vimgrep_arguments = { unpack(telescopeConfig.values.vimgrep_arguments) }
|
||||||
table.insert(vimgrep_arguments, "--hidden")
|
table.insert(vimgrep_arguments, '--hidden')
|
||||||
table.insert(vimgrep_arguments, "--glob")
|
table.insert(vimgrep_arguments, '--glob')
|
||||||
table.insert(vimgrep_arguments, "!**/.git/*")
|
table.insert(vimgrep_arguments, '!**/.git/*')
|
||||||
|
|
||||||
telescope.setup({
|
telescope.setup({
|
||||||
defaults = {
|
defaults = {
|
||||||
vimgrep_arguments = vimgrep_arguments,
|
vimgrep_arguments = vimgrep_arguments,
|
||||||
file_ignore_patterns = {
|
file_ignore_patterns = {
|
||||||
"node_modules",
|
'node_modules',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pickers = {
|
pickers = {
|
||||||
find_files = {
|
find_files = {
|
||||||
find_command = { "rg", "--files", "--hidden", "--glob", "!**/.git/*" },
|
find_command = { 'rg', '--files', '--hidden', '--glob', '!**/.git/*' },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -45,7 +45,7 @@ return {
|
|||||||
},
|
},
|
||||||
append_tabs = { -- append_tabs will add the provided tabs to the default ones
|
append_tabs = { -- append_tabs will add the provided tabs to the default ones
|
||||||
{
|
{
|
||||||
'Commits', -- or name = "Commits"
|
'Commits', -- or name = 'Commits'
|
||||||
builtin.git_commits, -- or tele_func = require('telescope.builtin').git_commits
|
builtin.git_commits, -- or tele_func = require('telescope.builtin').git_commits
|
||||||
available = function() -- optional
|
available = function() -- optional
|
||||||
return vim.fn.isdirectory('.git') == 1
|
return vim.fn.isdirectory('.git') == 1
|
||||||
@@ -59,16 +59,17 @@ return {
|
|||||||
search.open({ tab_name = 'Buffers' })
|
search.open({ tab_name = 'Buffers' })
|
||||||
end)
|
end)
|
||||||
vim.keymap.set('n', '<leader>pws', function()
|
vim.keymap.set('n', '<leader>pws', function()
|
||||||
local word = vim.fn.expand("<cword>")
|
local word = vim.fn.expand('<cword>')
|
||||||
builtin.grep_string({ search = word })
|
builtin.grep_string({ search = word })
|
||||||
end)
|
end)
|
||||||
vim.keymap.set('n', '<leader>pWs', function()
|
vim.keymap.set('n', '<leader>pWs', function()
|
||||||
local word = vim.fn.expand("<cWORD>")
|
local word = vim.fn.expand('<cWORD>')
|
||||||
builtin.grep_string({ search = word })
|
builtin.grep_string({ search = word })
|
||||||
end)
|
end)
|
||||||
vim.keymap.set('n', '<leader>ps', function()
|
vim.keymap.set('n', '<leader>ps', function()
|
||||||
builtin.grep_string({ search = vim.fn.input("Grep > ") })
|
builtin.grep_string({ search = vim.fn.input('Grep > ') })
|
||||||
end)
|
end)
|
||||||
vim.keymap.set('n', '<leader>vh', builtin.help_tags, {})
|
vim.keymap.set('n', '<leader>vh', builtin.help_tags, {})
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,3 +28,5 @@ vim.keymap.set("n", "Q", "<nop>")
|
|||||||
|
|
||||||
vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
|
vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-s>", "<cmd>silent !tmux neww tmux-sessionizer<CR>")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user