Chaned some settings

This commit is contained in:
Dreaded_X 2021-12-23 21:56:38 +01:00
parent b2ce06ac46
commit 0762b5b896
3 changed files with 15 additions and 12 deletions

View File

@ -51,7 +51,7 @@ set updatetime=300
set noshowmode set noshowmode
" Keybindings " Keybindings
map <silent> <M-2> :NERDTreeToggle<cr> map <silent> <F2> :NERDTreeToggle<cr>
map <silent> <M-h> :TmuxNavigateLeft<cr> map <silent> <M-h> :TmuxNavigateLeft<cr>
map <silent> <M-j> :TmuxNavigateDown<cr> map <silent> <M-j> :TmuxNavigateDown<cr>
map <silent> <M-k> :TmuxNavigateUp<cr> map <silent> <M-k> :TmuxNavigateUp<cr>
@ -61,8 +61,8 @@ map <silent> <S-tab> :bp<cr>
map <silent> <S-j> 10j map <silent> <S-j> 10j
map <silent> <S-k> 10k map <silent> <S-k> 10k
map <silent> <C-b> :Bdelete<cr> map <silent> <C-b> :Bdelete<cr>
map <silent> <M-3> :call ToggleQuickfixList()<cr> map <silent> <F3> :call ToggleQuickfixList()<cr>
map <silent> <M-1> :noh<cr> map <silent> <F1> :noh<cr>
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
@ -72,6 +72,7 @@ imap <expr> <cr> pumvisible() ? "\<C-y>\<cr>" : "<Plug>delimitMateCR"
nnoremap <leader>ff <cmd>Telescope find_files<cr> nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr> nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr> nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>lc <cmd>Telescope lsp_code_actions<cr>
map <silent> <leader>ln :lua vim.lsp.diagnostic.goto_next()<cr> map <silent> <leader>ln :lua vim.lsp.diagnostic.goto_next()<cr>
map <silent> <leader>lp :lua vim.lsp.diagnostic.goto_prev()<cr> map <silent> <leader>lp :lua vim.lsp.diagnostic.goto_prev()<cr>
map <leader>ll :lua vim.lsp.buf. map <leader>ll :lua vim.lsp.buf.

View File

@ -35,13 +35,15 @@ require('packer').startup(function()
use 'hrsh7th/cmp-buffer' -- LSP source for buffer use 'hrsh7th/cmp-buffer' -- LSP source for buffer
use 'saadparwaiz1/cmp_luasnip' -- Snippets source for nvim-cmp use 'saadparwaiz1/cmp_luasnip' -- Snippets source for nvim-cmp
use 'L3MON4D3/LuaSnip' -- Snippets plugin use 'L3MON4D3/LuaSnip' -- Snippets plugin
use 'ray-x/lsp_signature.nvim' -- use 'ray-x/lsp_signature.nvim'
use 'leafgarland/typescript-vim' use 'leafgarland/typescript-vim'
use 'peitalin/vim-jsx-typescript' use 'peitalin/vim-jsx-typescript'
use 'cespare/vim-toml' use 'cespare/vim-toml'
end) end)
require('telescope').setup{ defaults = { file_ignore_patterns = { "node_module" } } }
local nvim_lsp = require('lspconfig') local nvim_lsp = require('lspconfig')
-- Add additional capabilities supported by nvim-cmp -- Add additional capabilities supported by nvim-cmp
@ -75,13 +77,13 @@ vim.fn.sign_define("LspDiagnosticsSignWarning", { text="" })
vim.fn.sign_define("LspDiagnosticsSignInformation", { text="" }) vim.fn.sign_define("LspDiagnosticsSignInformation", { text="" })
vim.fn.sign_define("LspDiagnosticsSignHint", { text="" }) vim.fn.sign_define("LspDiagnosticsSignHint", { text="" })
require 'lsp_signature'.setup({ -- require 'lsp_signature'.setup({
bind = true, -- bind = true,
hint_enable = false, -- hint_enable = false,
handler_opts = { -- handler_opts = {
border = "none" -- border = "none"
} -- }
}) -- })
-- Set completeopt to have a better completion experience -- Set completeopt to have a better completion experience
vim.o.completeopt = 'menuone,noselect' vim.o.completeopt = 'menuone,noselect'

View File

@ -1,4 +1,4 @@
_docker_subcommands=( ${(Q)"${(z)$(<<\EO:_docker_subcommands _docker_subcommands=( ${(Q)"${(z)$(<<\EO:_docker_subcommands
'app*:Docker App (Docker Inc., v0.9.1-beta3)' 'builder:Manage builds' 'buildx*:Build with BuildKit (Docker Inc., v0.5.1-tp-docker)' 'config:Manage Docker configs' 'container:Manage containers' 'context:Manage contexts' 'image:Manage images' 'manifest:Manage Docker image manifests and manifest lists' 'network:Manage networks' 'node:Manage Swarm nodes' 'plugin:Manage plugins' 'secret:Manage Docker secrets' 'service:Manage services' 'stack:Manage Docker stacks' 'swarm:Manage Swarm' 'system:Manage Docker' 'trust:Manage trust on Docker images' 'volume:Manage volumes' 'attach:Attach local standard input, output, and error streams to a running container' 'build:Build an image from a Dockerfile' 'commit:Create a new image from a container''s changes' 'cp:Copy files/folders between a container and the local filesystem' 'create:Create a new container' 'diff:Inspect changes to files or directories on a container''s filesystem' 'events:Get real time events from the server' 'exec:Run a command in a running container' 'export:Export a container''s filesystem as a tar archive' 'history:Show the history of an image' 'images:List images' 'import:Import the contents from a tarball to create a filesystem image' 'info:Display system-wide information' 'inspect:Return low-level information on Docker objects' 'kill:Kill one or more running containers' 'load:Load an image from a tar archive or STDIN' 'login:Log in to a Docker registry' 'logout:Log out from a Docker registry' 'logs:Fetch the logs of a container' 'pause:Pause all processes within one or more containers' 'port:List port mappings or a specific mapping for the container' 'ps:List containers' 'pull:Pull an image or a repository from a registry' 'push:Push an image or a repository to a registry' 'rename:Rename a container' 'restart:Restart one or more containers' 'rm:Remove one or more containers' 'rmi:Remove one or more images' 'run:Run a command in a new container' 'save:Save one or more images to a tar archive (streamed to STDOUT by default)' 'search:Search the Docker Hub for images' 'start:Start one or more stopped containers' 'stats:Display a live stream of container(s) resource usage statistics' 'stop:Stop one or more running containers' 'tag:Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE' 'top:Display the running processes of a container' 'unpause:Unpause all processes within one or more containers' 'update:Update configuration of one or more containers' 'version:Show the Docker version information' 'wait:Block until one or more containers stop, then print their exit codes' 'daemon:Enable daemon mode' 'help:Show help for a command' 'builder:Manage builds' 'buildx*:Build with BuildKit (Docker Inc., v0.6.1-docker)' 'compose*:Docker Compose (Docker Inc., 2.2.0)' 'config:Manage Docker configs' 'container:Manage containers' 'context:Manage contexts' 'image:Manage images' 'manifest:Manage Docker image manifests and manifest lists' 'network:Manage networks' 'node:Manage Swarm nodes' 'plugin:Manage plugins' 'secret:Manage Docker secrets' 'service:Manage services' 'stack:Manage Docker stacks' 'swarm:Manage Swarm' 'system:Manage Docker' 'trust:Manage trust on Docker images' 'volume:Manage volumes' 'attach:Attach local standard input, output, and error streams to a running container' 'build:Build an image from a Dockerfile' 'commit:Create a new image from a container''s changes' 'cp:Copy files/folders between a container and the local filesystem' 'create:Create a new container' 'diff:Inspect changes to files or directories on a container''s filesystem' 'events:Get real time events from the server' 'exec:Run a command in a running container' 'export:Export a container''s filesystem as a tar archive' 'history:Show the history of an image' 'images:List images' 'import:Import the contents from a tarball to create a filesystem image' 'info:Display system-wide information' 'inspect:Return low-level information on Docker objects' 'kill:Kill one or more running containers' 'load:Load an image from a tar archive or STDIN' 'login:Log in to a Docker registry' 'logout:Log out from a Docker registry' 'logs:Fetch the logs of a container' 'pause:Pause all processes within one or more containers' 'port:List port mappings or a specific mapping for the container' 'ps:List containers' 'pull:Pull an image or a repository from a registry' 'push:Push an image or a repository to a registry' 'rename:Rename a container' 'restart:Restart one or more containers' 'rm:Remove one or more containers' 'rmi:Remove one or more images' 'run:Run a command in a new container' 'save:Save one or more images to a tar archive (streamed to STDOUT by default)' 'search:Search the Docker Hub for images' 'start:Start one or more stopped containers' 'stats:Display a live stream of container(s) resource usage statistics' 'stop:Stop one or more running containers' 'tag:Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE' 'top:Display the running processes of a container' 'unpause:Unpause all processes within one or more containers' 'update:Update configuration of one or more containers' 'version:Show the Docker version information' 'wait:Block until one or more containers stop, then print their exit codes' 'daemon:Enable daemon mode' 'help:Show help for a command'
EO:_docker_subcommands EO:_docker_subcommands
)}"} ) )}"} )