Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
tminhvu committed Jan 7, 2023
1 parent 9f9d734 commit f8f590e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
24 changes: 12 additions & 12 deletions lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@
"cmp-nvim-lsp": { "branch": "main", "commit": "59224771f91b86d1de12570b4070fe4ad7cd1eeb" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" },
"gitsigns.nvim": { "branch": "main", "commit": "2ab3bdf0a40bab53033048c6be75bda86316b55d" },
"gitsigns.nvim": { "branch": "main", "commit": "d4f8c01280413919349f5df7daccd0c172143d7c" },
"indent-blankline.nvim": { "branch": "master", "commit": "c4c203c3e8a595bc333abaf168fcb10c13ed5fb7" },
"lazy.nvim": { "branch": "main", "commit": "06db1ec3c6baa9460e42ef8ed4d2cc2613b194cb" },
"lazy.nvim": { "branch": "main", "commit": "8798ccc95031225e3b2241bd8b2d26c2452b06c4" },
"lspkind.nvim": { "branch": "master", "commit": "c68b3a003483cf382428a43035079f78474cd11e" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "aa25b4153d2f2636c3b3a8c8360349d2b29e7ae3" },
"mason.nvim": { "branch": "main", "commit": "b8c3fceed16d29a166cf73ce55358f13c9f6cfcc" },
"neogen": { "branch": "main", "commit": "71f16ffb485a3b3faf4dd91116516ce8e7552e3d" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "33a198bc5ee0215ae8ab3f61781b29103cf4ca5a" },
"mason.nvim": { "branch": "main", "commit": "55bb4d80e52b79d9a512c7f508091fa2e93d4390" },
"neogen": { "branch": "main", "commit": "2961b48f7263769953ac18fe4afa4df71b321341" },
"neoscroll.nvim": { "branch": "master", "commit": "54c5c419f6ee2b35557b3a6a7d631724234ba97a" },
"nvim-autopairs": { "branch": "master", "commit": "03580d758231956d33c8dd91e2be195106a79fa4" },
"nvim-cmp": { "branch": "main", "commit": "c49ad26e894e137e401b1d294948c46327877eaf" },
"nvim-cmp": { "branch": "main", "commit": "11a95792a5be0f5a40bab5fc5b670e5b1399a939" },
"nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
"nvim-lspconfig": { "branch": "master", "commit": "0687eaacc634a82f4832599653ad1305fdf0c941" },
"nvim-tree.lua": { "branch": "master", "commit": "bac962caf472a4404ed3ce1ba2fcaf32f8002951" },
"nvim-treesitter": { "branch": "master", "commit": "12e95e160d7d45b76a36bca6303dd8447ab77490" },
"nvim-web-devicons": { "branch": "master", "commit": "05e1072f63f6c194ac6e867b567e6b437d3d4622" },
"nvim-lspconfig": { "branch": "master", "commit": "41dc4e017395d73af0333705447e858b7db1f75e" },
"nvim-tree.lua": { "branch": "master", "commit": "f2ee30998eb4e191ed9931719a4e3b28be35494b" },
"nvim-treesitter": { "branch": "master", "commit": "85d953449125702c7c11f4a2242c328f7a65fd5b" },
"nvim-web-devicons": { "branch": "master", "commit": "7f55bc36eddec87597167a97de5b690997edaf7d" },
"one_monokai.nvim": { "branch": "main", "commit": "e8b914bd5910d06834c5811de535b36d7c3b168a" },
"plenary.nvim": { "branch": "master", "commit": "4b7e52044bbb84242158d977a50c4cbcd85070c7" },
"plenary.nvim": { "branch": "master", "commit": "9d81624fbcedd3dd43b38d7e13a1e7b3f873d8cd" },
"symbols-outline.nvim": { "branch": "master", "commit": "6a3ed24c5631da7a5d418bced57c16b32af7747c" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "fab3e2212e206f4f8b3bbaa656e129443c9b802e" },
"telescope.nvim": { "branch": "master", "commit": "a606bd10c79ec5989c76c49cc6f736e88b63f0da" }
"telescope.nvim": { "branch": "master", "commit": "04af51dbfb17c2afa0b8d82b0e842e0638201ca9" }
}
6 changes: 1 addition & 5 deletions lua/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ vim.api.nvim_create_user_command('Qa', 'qa', {})

-- OTHER
vim.cmd [[
" to compile and run python code
autocmd FileType python nnoremap <buffer> <F9> :update<bar>!python %<CR>
autocmd FileType python inoremap <buffer> <F9> <Esc>:update<bar>!python %<CR>
" to compile and run c code
autocmd FileType c nnoremap <buffer> <F9> :call RunC() <cr>
" function to compile and run C code
Expand All @@ -102,7 +98,7 @@ vim.cmd [[
autocmd FileType lua nnoremap <buffer> <F9> :call RunLua()<cr>
function! RunLua()
split | term lua %
split | term l %
startinsert
endfunction
]]
Expand Down
6 changes: 3 additions & 3 deletions lua/config/lazy/plugins/mason.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ return {

-- LSP SERVER CONFIG
local opts = { noremap = true, silent = true }
local on_attach = function(client, bufnr)
local on_attach = function(_, bufnr)
-- See `:help vim.lsp.*` for documentation on any of the below functions
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
Expand All @@ -48,8 +48,8 @@ return {
opts)
end

local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').default_capabilities()
--local capabilities = vim.lsp.protocol.make_client_capabilities()
local capabilities = require('cmp_nvim_lsp').default_capabilities()

local lspconfig = require('lspconfig')
mason_lspconfig.setup_handlers {
Expand Down

0 comments on commit f8f590e

Please sign in to comment.