Skip to content

Commit

Permalink
Adding nvim test and improving py support
Browse files Browse the repository at this point in the history
  • Loading branch information
daonb committed Nov 10, 2024
1 parent df3c53e commit 775f1cb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .config/nvim/after/plugin/lspzero.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ lsp_zero.on_attach(function(client, bufnr)
end)

local lspconfig = require('lspconfig')
lspconfig.tsserver.setup {}
lspconfig["ts_ls"].setup({})
lspconfig.gopls.setup({})
lspconfig.pyright.setup({
pythonPath= "/Users/daonb/Library/Caches/pypoetry/virtualenvs/vault-RT5-Ioyu-py3.10/bin/python"
Expand Down
4 changes: 4 additions & 0 deletions .config/nvim/after/plugin/treesitter.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Global setting in init.lua
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"

require 'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the five listed parsers should always be installed)
ensure_installed = { "c", "lua", "javascript", "typescript", "python", "vim", "vimdoc", "query" },
Expand Down
1 change: 1 addition & 0 deletions .config/nvim/lua/daonb/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,4 @@ hi diffChange ctermfg=188 ctermbg=NONE cterm=bold guifg=#50FA7B guibg=#303030 gu
hi diffRemoved ctermfg=88 ctermbg=NONE cterm=NONE guifg=#FA5057 guibg=#303030 gui=NONE
]]

require('nvim-test').setup()
10 changes: 8 additions & 2 deletions .config/nvim/lua/daonb/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,16 @@ return require('packer').startup(function(use)
use 'mfussenegger/nvim-dap-python'
use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap"} }
use {'github/copilot.vim', branch = 'release' }
use({
use {
"nvim-treesitter/nvim-treesitter-textobjects",
after = "nvim-treesitter",
requires = "nvim-treesitter/nvim-treesitter",
})
}
use 'nvim-treesitter/nvim-treesitter-context'
use {
'klen/nvim-test',
config = function()
require('nvim-test').setup()
end
}
end)
2 changes: 2 additions & 0 deletions .config/starship.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[gcloud]
disabled = true
[aws]
disabled = true
1 change: 1 addition & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export GO11MODULE=on
export PYENV_VIRTUALENV_DISABLE_PROMPT=1
export PATH="$HOME/.local/bin:$HOME/go/bin:$HOME/node/bin:/usr/local/go/bin:/Library/TeX/texbin:/snap/bin:/sbin:$PATH"

if [ -d "/usr/games" ]; then
Expand Down

0 comments on commit 775f1cb

Please sign in to comment.