Browse Source

feat: add csvview to nvim plugins

master
Tovi Jaeschke-Rogers 1 week ago
parent
commit
9c4f413332
5 changed files with 24 additions and 2 deletions
  1. +1
    -1
      .config/nvim/lua/core/autocmd.lua
  2. +6
    -0
      .config/nvim/lua/plugins/csvview.lua
  3. +2
    -1
      .config/nvim/lua/plugins/lspconfig.lua
  4. +13
    -0
      .config/nvim/lua/plugins/nvim-cmp.lua
  5. +2
    -0
      .config/zsh/.zshrc

+ 1
- 1
.config/nvim/lua/core/autocmd.lua View File

@ -28,7 +28,7 @@ local aucmd_dict = {
FileType = { FileType = {
{ {
-- Set tabstop to 2 for Dart, Vue, JavaScript, TypeScript, and JSON files -- Set tabstop to 2 for Dart, Vue, JavaScript, TypeScript, and JSON files
pattern = "dart,vue,javascript,typescript,json,markdown",
pattern = "dart,vue,javascript,typescript,typescriptreact,json,markdown",
callback = function() callback = function()
vim.opt_local.tabstop = 2 vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2 vim.opt_local.softtabstop = 2


+ 6
- 0
.config/nvim/lua/plugins/csvview.lua View File

@ -0,0 +1,6 @@
return {
'hat0uma/csvview.nvim',
config = function()
require('csvview').setup()
end
}

+ 2
- 1
.config/nvim/lua/plugins/lspconfig.lua View File

@ -159,7 +159,7 @@ return {
{ {
name = "@vue/typescript-plugin", name = "@vue/typescript-plugin",
location = base_path .. "/@vue/typescript-plugin", location = base_path .. "/@vue/typescript-plugin",
languages = { "javascript", "typescript", "vue" },
languages = { "javascript", "typescript", "vue", "react" },
}, },
}, },
}, },
@ -167,6 +167,7 @@ return {
"javascript", "javascript",
"typescript", "typescript",
"vue", "vue",
"typescriptreact",
}, },
}, },


+ 13
- 0
.config/nvim/lua/plugins/nvim-cmp.lua View File

@ -28,6 +28,8 @@ return {
"hrsh7th/cmp-buffer", "hrsh7th/cmp-buffer",
"hrsh7th/cmp-path", "hrsh7th/cmp-path",
"hrsh7th/cmp-nvim-lsp-signature-help", "hrsh7th/cmp-nvim-lsp-signature-help",
"Snikimonkd/cmp-go-pkgs",
}, },
config = function() config = function()
local cmp = require("cmp") local cmp = require("cmp")
@ -68,11 +70,21 @@ return {
{ name = "buffer" }, { name = "buffer" },
{ name = "path" }, { name = "path" },
{ name = "vim-dadbod-completion" }, { name = "vim-dadbod-completion" },
{ name = "go_pkgs" },
}, },
matching = {
disallow_fullfuzzy_matching = false,
disallow_partial_fuzzy_matching = false,
disallow_fuzzy_matching = false,
disallow_partial_matching = false,
disallow_symbol_nonprefix_matching = false,
disallow_prefix_unmatching = false,
},
formatting = { formatting = {
expandable_indicator = true, expandable_indicator = true,
fields = { "abbr", "kind", "menu" }, fields = { "abbr", "kind", "menu" },
format = lspkind.cmp_format({ format = lspkind.cmp_format({
with_text = true,
mode = "symbol_text", mode = "symbol_text",
menu = { menu = {
nvim_lua = "[API]", nvim_lua = "[API]",
@ -81,6 +93,7 @@ return {
vim_dadbod_completion = "[DBUI]", vim_dadbod_completion = "[DBUI]",
path = "[PATH]", path = "[PATH]",
buffer = "[BUFF]", buffer = "[BUFF]",
go_pkgs = "[PKGS]",
}, },
}), }),
}, },


+ 2
- 0
.config/zsh/.zshrc View File

@ -114,5 +114,7 @@ if [ -f "$HOME/.cargo/env" ]; then
. "$HOME/.cargo/env" . "$HOME/.cargo/env"
fi fi
export PATH=~/.config/composer/vendor/bin:$PATH
# Speed debugging # Speed debugging
# zprof # zprof

Loading…
Cancel
Save