misc settings
This commit is contained in:
9
nvim/lua/config/plugins/flutter.lua
Normal file
9
nvim/lua/config/plugins/flutter.lua
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
return {
|
||||||
|
'nvim-flutter/flutter-tools.nvim',
|
||||||
|
lazy = false,
|
||||||
|
dependencies = {
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
'stevearc/dressing.nvim', -- optional for vim.ui.select
|
||||||
|
},
|
||||||
|
config = true,
|
||||||
|
}
|
||||||
@ -81,36 +81,43 @@ return {
|
|||||||
['ts_ls'] = function()
|
['ts_ls'] = function()
|
||||||
lspconfig['ts_ls'].setup({
|
lspconfig['ts_ls'].setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
-- cmd = { "typescript-language-server", "--stdio" },
|
||||||
end,
|
init_options = {
|
||||||
['pyright'] = function()
|
hostInfo = "neovim",
|
||||||
lspconfig['pyright'].setup({
|
prferences = {
|
||||||
cmd = { "pyright-langserver", "--stdio" },
|
includePackagesJsonAutoImports = "on",
|
||||||
filetypes = { "python" },
|
|
||||||
-- root_dir = function(filename)
|
|
||||||
-- return util.root_pattern(unpack(root_files))(filename) or util.path.dirname(filename)
|
|
||||||
-- end,
|
|
||||||
settings = {
|
|
||||||
python = {
|
|
||||||
analysis = {
|
|
||||||
autoSearchPaths = true,
|
|
||||||
diagnosticMode = "workspace",
|
|
||||||
useLibraryCodeForTypes = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
-- capabilities = capabilities,
|
|
||||||
-- settings = {
|
|
||||||
-- python = {
|
|
||||||
-- analysis = {
|
|
||||||
-- useLibraryCodeForTypes = true,
|
|
||||||
-- typeCheckingMode = "basic",
|
|
||||||
-- -- configPath = vim.fn.expand('./pyrightconfig.json')
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- },
|
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
-- ['pyright'] = function()
|
||||||
|
-- lspconfig['pyright'].setup({
|
||||||
|
-- -- cmd = { "pyright-langserver", "--stdio" },
|
||||||
|
-- -- filetypes = { "python" },
|
||||||
|
-- -- root_dir = function(filename)
|
||||||
|
-- -- return util.root_pattern(unpack(root_files))(filename) or util.path.dirname(filename)
|
||||||
|
-- -- end,
|
||||||
|
-- -- settings = {
|
||||||
|
-- -- python = {
|
||||||
|
-- -- analysis = {
|
||||||
|
-- -- autoSearchPaths = true,
|
||||||
|
-- -- diagnosticMode = "workspace",
|
||||||
|
-- -- useLibraryCodeForTypes = true
|
||||||
|
-- -- }
|
||||||
|
-- -- }
|
||||||
|
-- -- }
|
||||||
|
-- capabilities = capabilities,
|
||||||
|
-- settings = {
|
||||||
|
-- python = {
|
||||||
|
-- analysis = {
|
||||||
|
-- useLibraryCodeForTypes = true,
|
||||||
|
-- typeCheckingMode = "basic",
|
||||||
|
-- -- configPath = vim.fn.expand('./pyrightconfig.json')
|
||||||
|
-- }
|
||||||
|
-- }
|
||||||
|
-- },
|
||||||
|
-- })
|
||||||
|
-- end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,22 @@
|
|||||||
return {
|
return {
|
||||||
'folke/todo-comments.nvim',
|
'folke/todo-comments.nvim',
|
||||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||||
opts = {},
|
lazy = false,
|
||||||
|
config = function()
|
||||||
|
require("todo-comments").setup({
|
||||||
|
-- keywords = {
|
||||||
|
-- TODO = { icon = " ", color = "custom" },
|
||||||
|
-- },
|
||||||
|
-- colors = {
|
||||||
|
-- custom = { fg = "#FF0000", bg = "#000000" },
|
||||||
|
-- },
|
||||||
|
highlight = {
|
||||||
|
pattern = [[.*<(KEYWORDS)\s*]],
|
||||||
|
},
|
||||||
|
search = {
|
||||||
|
pattern = [[\b(KEYWORDS)\b]],
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
@ -104,9 +104,10 @@ fi
|
|||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||||
bindkey '^R' history-incremental-search-backward
|
bindkey '^R' history-incremental-search-backward
|
||||||
|
|
||||||
|
# TODO source all files with .zsh suffix
|
||||||
source ~/dotfiles/zsh/aliases.zsh
|
source ~/dotfiles/zsh/aliases.zsh
|
||||||
source ~/dotfiles/zsh/dev_env.zsh
|
source ~/dotfiles/zsh/dev_env.zsh
|
||||||
|
source ~/dotfiles/zsh/tools.zsh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,3 +2,5 @@ alias vim='nvim'
|
|||||||
|
|
||||||
alias tp='trash-put'
|
alias tp='trash-put'
|
||||||
alias tl='trash-list'
|
alias tl='trash-list'
|
||||||
|
|
||||||
|
alias zrc='source ~/.zshrc'
|
||||||
|
|||||||
1
zsh/tools.zsh
Normal file
1
zsh/tools.zsh
Normal file
@ -0,0 +1 @@
|
|||||||
|
source /usr/share/autojump/autojump.zsh
|
||||||
Reference in New Issue
Block a user