Browse Source

feat: add csvview to nvim plugins

master
Tovi Jaeschke-Rogers 15 hours 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 = {
{
-- 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()
vim.opt_local.tabstop = 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",
location = base_path .. "/@vue/typescript-plugin",
languages = { "javascript", "typescript", "vue" },
languages = { "javascript", "typescript", "vue", "react" },
},
},
},
@ -167,6 +167,7 @@ return {
"javascript",
"typescript",
"vue",
"typescriptreact",
},
},


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

@ -28,6 +28,8 @@ return {
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-nvim-lsp-signature-help",
"Snikimonkd/cmp-go-pkgs",
},
config = function()
local cmp = require("cmp")
@ -68,11 +70,21 @@ return {
{ name = "buffer" },
{ name = "path" },
{ 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 = {
expandable_indicator = true,
fields = { "abbr", "kind", "menu" },
format = lspkind.cmp_format({
with_text = true,
mode = "symbol_text",
menu = {
nvim_lua = "[API]",
@ -81,6 +93,7 @@ return {
vim_dadbod_completion = "[DBUI]",
path = "[PATH]",
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"
fi
export PATH=~/.config/composer/vendor/bin:$PATH
# Speed debugging
# zprof

Loading…
Cancel
Save