update:nvim

This commit is contained in:
sankalp committed 2024-03-25 14:37:19 +05:45
1 parent 099013eefb
commit 877320b7e4
8 files changed
+75 -40

No files matched your search

@@ -1,7 +1,5 @@
return {
{
import = "lazyvim.plugins.extras.coding.copilot",
},
{ import = "lazyvim.plugins.extras.coding.copilot" },
{
"zbirenbaum/copilot.lua",
event = "InsertEnter",
@@ -9,13 +9,7 @@ return {
},
{
"rest-nvim/rest.nvim",
dependencies = {
{
"gennaro-tedesco/nvim-jqx",
ft = { "json", "yaml" },
},
},
ft = { "http" },
ft = "http",
opts = {
-- Open request results in a horizontal split
result_split_horizontal = true,
@@ -7,7 +7,6 @@ return {
require("telescope").setup({
extensions = {
undo = {
use_delta = true,
side_by_side = true,
layout_strategy = "vertical",
layout_config = {
@@ -0,0 +1,11 @@
return {
{ import = "lazyvim.plugins.extras.lang.json" },
{
"gennaro-tedesco/nvim-jqx",
ft = { "json", "yaml" },
cmd = { "JqxList", "JqxQuery" },
keys = {
{ "<leader>cj", ft = { "json", "yaml" }, "<cmd>JqxList<cr>", desc = "Jqx List" },
},
},
}
@@ -26,7 +26,7 @@ end
return {
{ import = "lazyvim.plugins.extras.lang.typescript" },
{ import = "lazyvim.plugins.extras.lang.json" },
{ import = "plugins.extras.lang.json-extended" },
{
"williamboman/mason.nvim",
opts = function(_, opts)
@@ -146,6 +146,7 @@ return {
},
keys = {
{ "<leader>ct", ft = { "typescript", "typescriptreact" }, "<cmd>TSC<cr>", desc = "Type Check" },
{ "<leader>xy", ft = { "typescript", "typescriptreact" }, "<cmd>TSCOpen<cr>", desc = "Type Check Quickfix" },
},
ft = {
"typescript",
@@ -12,6 +12,25 @@ return {
opts = {
servers = {
volar = {},
tsserver = {},
},
setup = {
tsserver = function(_, opts)
local mason_registry = require("mason-registry")
local vue_language_server_path = mason_registry.get_package("vue-language-server"):get_install_path()
.. "/node_modules/@vue/language-server"
opts.init_options = {
plugins = {
{
name = "@vue/typescript-plugin",
location = vue_language_server_path,
languages = { "vue" },
},
},
}
opts.filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" }
end,
},
},
},
@@ -40,25 +40,26 @@ return {
{ "<leader>sSp", LazyVim.telescope("lsp_dynamic_workspace_symbols", { symbols = { "Property" } }), desc = "Property" },
{ "<leader>sSv", LazyVim.telescope("lsp_dynamic_workspace_symbols", { symbols = { "Variable", "Parameter" } }), desc = "Variable" },
{ "<leader>sA", LazyVim.telescope("treesitter"), desc = "Treesitter Symbols" },
{ "<leader>sp", "<cmd>Telescope builtin<cr>", desc = "Pickers (Telescope)" },
{ "<leader>fh", LazyVim.telescope("find_files", { hidden = true }), desc = "Find Files (hidden)" },
{ "<leader><c-space>", LazyVim.telescope("find_files", { hidden = true }), desc = "Find Files (hidden)" },
{ "<leader>gf", "<cmd>Telescope git_bcommits<cr>", desc = "File History" },
{ "<leader>gS", "<cmd>Telescope git_stash<cr>", desc = "stash" },
{ "<leader>gb", "<cmd>Telescope git_branches<cr>", desc = "branches" },
{ "<leader>cs", function()
require('telescope.builtin').spell_suggest(require('telescope.themes').get_dropdown({}), { layout_config = { width=0.25, height=0.3 } })
end, desc = "Spelling" },
{ "<leader>cs", "<cmd>Telescope spell_suggest<cr>", desc = "Spelling" },
},
opts = {
defaults = {
mappings = {
i = {
["<C-k>"] = actions.move_selection_previous,
["<C-r>"] = actions.delete_buffer,
["<C-j>"] = actions.move_selection_next,
["<S-esc>"] = actions.close,
["<C-p>"] = require("telescope.actions.layout").toggle_preview,
["<c-l>"] = require("telescope.actions.layout").cycle_layout_next,
["<a-l>"] = require("telescope.actions.layout").cycle_layout_prev,
["<C-Down>"] = actions.cycle_history_next,
["<C-Up>"] = actions.cycle_history_prev,
["<esc>"] = actions.close,
},
},
file_ignore_patterns = {
@@ -70,21 +71,42 @@ return {
"*.git/*",
"*/tmp/*",
},
pickers = {
find_files = {
hidden = false,
},
pickers = {
find_files = {
hidden = false,
},
buffers = {
layout_config = {
prompt_position = "top",
height = 0.5,
width = 0.6,
},
sorting_strategy = "ascending",
mappings = {
i = {
["<c-r>"] = require("telescope.actions").delete_buffer,
},
},
},
extensions = {
fzf = {
fuzzy = true,
override_generic_sorter = true,
override_file_sorter = true,
case_mode = "smart_case",
},
["ui-select"] = {
require("telescope.themes").get_dropdown({}),
spell_suggest = {
layout_config = {
prompt_position = "top",
height = 0.3,
width = 0.25,
},
sorting_strategy = "ascending",
},
},
extensions = {
fzf = {
fuzzy = true,
override_generic_sorter = true,
override_file_sorter = true,
case_mode = "smart_case",
},
["ui-select"] = {
require("telescope.themes").get_dropdown({}),
},
},
},